mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-16 23:12:57 +02:00
fixed an issue with DELETE requests and persistent connections
This commit is contained in:
parent
81e15f393f
commit
974d6e7298
@ -56,7 +56,7 @@ HTTPServerRequestImpl::HTTPServerRequestImpl(HTTPServerResponseImpl& rResponse,
|
|||||||
#else
|
#else
|
||||||
_pStream = new HTTPFixedLengthInputStream(session, getContentLength());
|
_pStream = new HTTPFixedLengthInputStream(session, getContentLength());
|
||||||
#endif
|
#endif
|
||||||
else if (getMethod() == HTTPRequest::HTTP_GET || getMethod() == HTTPRequest::HTTP_HEAD)
|
else if (getMethod() == HTTPRequest::HTTP_GET || getMethod() == HTTPRequest::HTTP_HEAD || getMethod() == HTTPRequest::HTTP_DELETE)
|
||||||
_pStream = new HTTPFixedLengthInputStream(session, 0);
|
_pStream = new HTTPFixedLengthInputStream(session, 0);
|
||||||
else
|
else
|
||||||
_pStream = new HTTPInputStream(session);
|
_pStream = new HTTPInputStream(session);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user