mirror of https://github.com/Icinga/icinga2.git
Implement support for the X-HTTP-Method-Override HTTP header
fixes #9698
This commit is contained in:
parent
a786dfa2ca
commit
6c3bafb722
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue