1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-03-09 12:31:03 +00:00

Merge pull request from xcps/connection_strip

strip connection http header
This commit is contained in:
orignal 2016-03-18 11:09:15 -04:00
commit fbe629154d

@ -204,7 +204,7 @@ namespace proxy
if (eol) if (eol)
{ {
*eol = 0; eol++; *eol = 0; eol++;
if (strncmp ((const char *)http_buff, "Referer", 7)) // strip out referer if (strncmp ((const char *)http_buff, "Referer", 7) && strncmp ((const char *)http_buff, "Connection", 10)) // strip out referer and connection
{ {
if (!strncmp ((const char *)http_buff, "User-Agent", 10)) // replace UserAgent if (!strncmp ((const char *)http_buff, "User-Agent", 10)) // replace UserAgent
m_request.append("User-Agent: MYOB/6.66 (AN/ON)"); m_request.append("User-Agent: MYOB/6.66 (AN/ON)");