From 1cbaf38bbc84159b2ffa87ecc5d8be15d943dc31 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Wed, 17 Feb 2016 20:32:19 +0100 Subject: [PATCH] fixed an issue with DELETE in persistent connections --- Net/src/HTTPServerRequestImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Net/src/HTTPServerRequestImpl.cpp b/Net/src/HTTPServerRequestImpl.cpp index 3ea9e435d..b7017d49d 100644 --- a/Net/src/HTTPServerRequestImpl.cpp +++ b/Net/src/HTTPServerRequestImpl.cpp @@ -58,7 +58,7 @@ HTTPServerRequestImpl::HTTPServerRequestImpl(HTTPServerResponseImpl& response, H #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);