Downloader class now properly URLencodes paths
This commit is contained in:
parent
fb88d214fb
commit
bd1b1be37e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue