From 5cfbc5727dba2f4662d24cf4deb7cab7cdd57c14 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 10 Jul 2019 16:15:30 +0200 Subject: 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 --- methods/http.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'methods/http.cc') 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"; -- cgit v1.2.3