Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2017-12-13 16:37:43 +01:00
commit 57b63051cf

View file

@ -1,6 +1,7 @@
#include "downloader.h"
#include "defines.h"
#include "timing.h"
#include "encode.h"
namespace HTTP{
@ -103,7 +104,7 @@ namespace HTTP{
H.SetHeader("Host", proxyUrl.host);
}
}else{
H.url = "/" + link.path;
H.url = "/" + Encodings::URL::encode(link.path);
if (link.args.size()){H.url += "?" + link.args;}
if (link.port.size()){
H.SetHeader("Host", link.host + ":" + link.port);