summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2019-07-10 16:15:30 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2019-07-10 16:15:30 +0200
commit5cfbc5727dba2f4662d24cf4deb7cab7cdd57c14 (patch)
tree833d5b53bc16a93085b4afe855eaafed15981119 /methods/http.cc
parent2b734a7ec429825c7007c1093883229e069d36c7 (diff)
Fix typos reported by codespell in code comments
Also in old changelogs, but nothing really user visible like error messages or alike so barely noteworthy. Reported-By: codespell Gbp-Dch: Ignore
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 0a29109fb..bd866d321 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -974,9 +974,10 @@ void HttpMethod::SendReq(FetchItem *Itm)
Req << "User-Agent: " << ConfigFind("User-Agent",
"Debian APT-HTTP/1.3 (" PACKAGE_VERSION ")") << "\r\n";
- auto const referer = ConfigFind("Referer", "");
- if (referer.empty() == false)
- Req << "Referer: " << referer << "\r\n";
+ // the famously typoed HTTP header field
+ auto const referrer = ConfigFind("Referer", "");
+ if (referrer.empty() == false)
+ Req << "Referer: " << referrer << "\r\n";
Req << "\r\n";