]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http.cc
Bug 1961 part 2: redesign of URL handling.
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 4 Nov 2014 08:47:03 +0000 (00:47 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 4 Nov 2014 08:47:03 +0000 (00:47 -0800)
commit92d6986ddb6efce85370f6bcf446cdfc53046e9f
treed0177e2bc2a611449f78e24e3eeb22af072cf221
parent581d42c4ba376e89b19d6c8e102e6a4b48825e8f
Bug 1961 part 2: redesign of URL handling.

Move the HttpRequest::login detail into class URL. Renaming to userInfo
as per the RFC 3986 defined name for this URI piece.

Convert the details to SBuf gaining several minor str*() removals in
the process and a simpler FTP login parser based on SBuf capabilities.

Also, updated the base64 encoder API used for converting between URI
userInfo and Basic authentication header token. Gaining better control
over the length of maximum token size and a small speedup from pre-known
input length.
src/HttpRequest.cc
src/HttpRequest.h
src/URL.h
src/acl/UrlLogin.cc
src/client_side.cc
src/client_side_request.cc
src/clients/FtpGateway.cc
src/http.cc
src/icmp/net_db.cc
src/url.cc