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:
Stephane Landelle 2021-07-01 08:13:10 +02:00 committed by GitHub
parent 194a81ff4f
commit 801819b359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ public final class HttpHeaderValues {
/**
* {@code "XmlHttpRequest"}
*/
public static final AsciiString XML_HTTP_REQUEST = AsciiString.cached("XmlHttpRequest");
public static final AsciiString XML_HTTP_REQUEST = AsciiString.cached("XMLHttpRequest");
private HttpHeaderValues() { }
}