From ad676623168e7b7b083f66617087c6cf424000d1 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:01:22 +0300 Subject: Fix tests --- src/net/HttpParser.cpp | 2 +- src/net/Url.cpp | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/net') diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp index 4b57bc1..befbc3b 100644 --- a/src/net/HttpParser.cpp +++ b/src/net/HttpParser.cpp @@ -99,7 +99,7 @@ string HttpParser::generateMultipartFormData(const vector& args, con result += item.value; result += "\r\n"; } - result += "--" + bondary + "--"; + result += "--" + bondary + "--\r\n"; return result; } diff --git a/src/net/Url.cpp b/src/net/Url.cpp index 44d9089..005506c 100644 --- a/src/net/Url.cpp +++ b/src/net/Url.cpp @@ -75,11 +75,6 @@ Url::Url(const string& url) { fragment += c; } } - - host = StringTools::urlEncode(host, "."); - path = StringTools::urlEncode(path, "/"); - query = StringTools::urlEncode(query, "&"); - fragment = StringTools::urlEncode(fragment); } } -- cgit v1.2.3