]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http.cc
Cleanup: remove urlHostname hacks (#615)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sat, 25 Apr 2020 06:08:35 +0000 (06:08 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 29 Apr 2020 19:13:13 +0000 (19:13 +0000)
commit1ac1d4d37b6f464a4d84379267093c7320e22112
treec7cf08f2ef3c869f3a3e2f79f9b9497959007483
parentcd29a4210f38e2e3a77ad7b0b83a5348d56ea5ff
Cleanup: remove urlHostname hacks (#615)

The urlHostname() function and class it uses employ a very dirty
hack to parse a guess at the hostname portion of a URL.

AnyP::Uri objects can be used instead for better parsing of URLs
with far more accurate hostname extraction in a wider set of URI.
src/anyp/Uri.cc
src/anyp/Uri.h
src/client_side_reply.cc
src/clients/Client.cc
src/htcp.cc
src/htcp.h
src/http.cc
src/neighbors.cc
src/neighbors.h
src/tests/stub_libanyp.cc
src/urn.cc