Fix URL encoding issues; remove request shortcuts.

This commit is contained in:
Chunting Gu
2019-08-23 14:51:41 +08:00
parent 9b31ac855a
commit 1a21989b2e
16 changed files with 372 additions and 365 deletions
+1 -4
View File
@@ -31,10 +31,7 @@ void Request::Prepare() {
target += url_.query();
}
start_line_ = method_;
start_line_ += " ";
start_line_ += target;
start_line_ += " HTTP/1.1";
start_line_ = method_ + " " + target + " HTTP/1.1";
if (url_.port().empty()) {
SetHeader(headers::kHost, url_.host());