mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Content-Type for POST
This commit is contained in:
parent
d7637bc0cd
commit
124007dc31
2 changed files with 15 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue