diff options
Diffstat (limited to 'methods')
-rw-r--r-- | methods/http.cc | 7 | ||||
-rw-r--r-- | methods/rfc2553emu.cc | 4 |
2 files changed, 6 insertions, 5 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"; diff --git a/methods/rfc2553emu.cc b/methods/rfc2553emu.cc index 72b3fc42b..41aa7470e 100644 --- a/methods/rfc2553emu.cc +++ b/methods/rfc2553emu.cc @@ -202,7 +202,7 @@ int getnameinfo(const struct sockaddr *sa, socklen_t salen, } } - // Resolve as a plain numberic + // Resolve as a plain numeric if ((flags & NI_NUMERICHOST) == NI_NUMERICHOST) { strncpy(host,inet_ntoa(sin->sin_addr),hostlen); @@ -231,7 +231,7 @@ int getnameinfo(const struct sockaddr *sa, socklen_t salen, } } - // Resolve as a plain numberic + // Resolve as a plain numeric if ((flags & NI_NUMERICSERV) == NI_NUMERICSERV) { snprintf(serv,servlen,"%u",ntohs(sin->sin_port)); |