mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
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);
|
String value = line.SubStr(pos + 1);
|
||||||
value.Trim();
|
value.Trim();
|
||||||
Headers->Set(key, value);
|
Headers->Set(key, value);
|
||||||
|
|
||||||
|
if (key == "x-http-method-override")
|
||||||
|
RequestMethod = value;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
VERIFY(!"Invalid HTTP request state.");
|
VERIFY(!"Invalid HTTP request state.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user