mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Content-Type for POST
This commit is contained in:
@@ -63,9 +63,12 @@ namespace proxy
|
||||
request r;
|
||||
ExtractRequest(r);
|
||||
parseHeaders(m_Buffer, r.headers);
|
||||
const char * data = strstr (m_Buffer, "\r\n\r\n");
|
||||
if (data) data += 4;
|
||||
|
||||
const char * data = nullptr;
|
||||
if (r.method == "POST")
|
||||
{
|
||||
data = strstr (m_Buffer, "\r\n\r\n");
|
||||
if (data) data += 4;
|
||||
}
|
||||
LogPrint("Requesting ", r.host, " with path ", r.uri, " and method ", r.method);
|
||||
HandleDestinationRequest(r.host, r.method, data ? std::string (data) : "" , r.uri);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user