From 6c3bafb722c550834508fe758c4e2c106586a41e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 22 Jul 2015 08:28:15 +0200 Subject: [PATCH] Implement support for the X-HTTP-Method-Override HTTP header fixes #9698 --- lib/remote/httprequest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/remote/httprequest.cpp b/lib/remote/httprequest.cpp index 334e54c20..5ebde7ec9 100644 --- a/lib/remote/httprequest.cpp +++ b/lib/remote/httprequest.cpp @@ -91,6 +91,9 @@ bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool String value = line.SubStr(pos + 1); value.Trim(); Headers->Set(key, value); + + if (key == "x-http-method-override") + RequestMethod = value; } } else { VERIFY(!"Invalid HTTP request state.");