mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
removed \r\n in header builder which was redundant and caused the further headers to be ignored
This commit is contained in:
parent
fd1aeeac92
commit
6bf823fb15
@ -720,7 +720,7 @@ namespace client
|
|||||||
i2p::http::HTTPReq req;
|
i2p::http::HTTPReq req;
|
||||||
req.AddHeader("Host", dest_host);
|
req.AddHeader("Host", dest_host);
|
||||||
req.AddHeader("User-Agent", "Wget/1.11.4");
|
req.AddHeader("User-Agent", "Wget/1.11.4");
|
||||||
req.AddHeader("X-Accept-Encoding", "x-i2p-gzip;q=1.0, identity;q=0.5, deflate;q=0, gzip;q=0, *;q=0\r\n");
|
req.AddHeader("X-Accept-Encoding", "x-i2p-gzip;q=1.0, identity;q=0.5, deflate;q=0, gzip;q=0, *;q=0");
|
||||||
req.AddHeader("Connection", "close");
|
req.AddHeader("Connection", "close");
|
||||||
if (!m_Etag.empty())
|
if (!m_Etag.empty())
|
||||||
req.AddHeader("If-None-Match", m_Etag);
|
req.AddHeader("If-None-Match", m_Etag);
|
||||||
|
Loading…
Reference in New Issue
Block a user