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 ++++--- methods/rfc2553emu.cc | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'methods') 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)); -- cgit v1.2.3-70-g09d2