mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #13294 - 6112:referrer-typo-fix, r=jdm
Fix most typoes for: "referer" -> "referrer" Replace most uses of the word "referer" with "referrer", except for `hyper::header::Referer`. Also update the unit tests to compile & pass after those changes. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13286 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they're only typo fixes. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13294) <!-- Reviewable:end -->
This commit is contained in:
commit
8ccfffaa77
7 changed files with 100 additions and 100 deletions
|
@ -676,8 +676,8 @@ pub fn modify_request_headers(headers: &mut Headers,
|
|||
referrer_url.clone(),
|
||||
url.clone());
|
||||
|
||||
if let Some(referer_val) = referrer_url.clone() {
|
||||
headers.set(Referer(referer_val.into_string()));
|
||||
if let Some(referrer_val) = referrer_url.clone() {
|
||||
headers.set(Referer(referrer_val.into_string()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue