Implement support for the X-HTTP-Method-Override HTTP header

fixes #9698
This commit is contained in:
Gunnar Beutner 2015-07-22 08:28:15 +02:00
parent a786dfa2ca
commit 6c3bafb722
1 changed files with 3 additions and 0 deletions

View File

@ -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.");