Skip to content

Commit

Permalink
fixed an issue with DELETE requests and persistent connections
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Feb 17, 2016
1 parent 81e15f3 commit 974d6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Net/src/HTTPServerRequestImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ HTTPServerRequestImpl::HTTPServerRequestImpl(HTTPServerResponseImpl& rResponse,
#else
_pStream = new HTTPFixedLengthInputStream(session, getContentLength());
#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);
else
_pStream = new HTTPInputStream(session);
Expand Down

0 comments on commit 974d6e7

Please sign in to comment.