Fix HttpHeaderValue#XML_HTTP_REQUEST case (#11433)
Motivation: HTTP header values are case sensitive. The expected value for `x-request-with` header is `XMLHttpRequest`, not `XmlHttpRequest`. Modification: Fix constant's case. Result: Correct `XMLHttpRequest` HTTP header value.
This commit is contained in:
parent
3afece1e13
commit
7aaf9c1b2e
@ -235,7 +235,7 @@ public final class HttpHeaderValues {
|
|||||||
/**
|
/**
|
||||||
* {@code "XmlHttpRequest"}
|
* {@code "XmlHttpRequest"}
|
||||||
*/
|
*/
|
||||||
public static final AsciiString XML_HTTP_REQUEST = AsciiString.cached("XmlHttpRequest");
|
public static final AsciiString XML_HTTP_REQUEST = AsciiString.cached("XMLHttpRequest");
|
||||||
|
|
||||||
private HttpHeaderValues() { }
|
private HttpHeaderValues() { }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user