mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
* Addressbook : readable http-req assembly
This commit is contained in:
parent
55ea8c82e9
commit
0819517902
@ -504,8 +504,11 @@ namespace client
|
|||||||
{
|
{
|
||||||
std::stringstream request, response;
|
std::stringstream request, response;
|
||||||
// standard header
|
// standard header
|
||||||
request << "GET " << u.path_ << " HTTP/1.1\r\nHost: " << u.host_
|
request << "GET " << u.path_ << " HTTP/1.1\r\n"
|
||||||
<< "\r\nAccept: */*\r\n" << "User-Agent: Wget/1.11.4\r\n" << "Connection: close\r\n";
|
<< "Host: " << u.host_ << "\r\n"
|
||||||
|
<< "Accept: */*\r\n"
|
||||||
|
<< "User-Agent: Wget/1.11.4\r\n"
|
||||||
|
<< "Connection: close\r\n";
|
||||||
if (m_Etag.length () > 0) // etag
|
if (m_Etag.length () > 0) // etag
|
||||||
request << i2p::util::http::IF_NONE_MATCH << ": \"" << m_Etag << "\"\r\n";
|
request << i2p::util::http::IF_NONE_MATCH << ": \"" << m_Etag << "\"\r\n";
|
||||||
if (m_LastModified.length () > 0) // if-modfief-since
|
if (m_LastModified.length () > 0) // if-modfief-since
|
||||||
|
Loading…
Reference in New Issue
Block a user