SpdyHttpHeaders are not lowercase
Motivation: According to the SPDY spec https://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1#TOC-3.2.1-Request header names must be lowercase. Our predefined SPDY extension headers are not lowercase. Modifications - SpdyHttpHeaders should define header names in lower case Result: Compliant with SPDY spec, and header validation code does not detect errors for our own header names.
This commit is contained in:
parent
2c4d22d49a
commit
1a7e7b0d98
@ -39,6 +39,7 @@ public class DefaultSpdyHeaders extends DefaultHeaders<CharSequence> implements
|
||||
this(true);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public DefaultSpdyHeaders(boolean validate) {
|
||||
super(CASE_INSENSITIVE_HASHER,
|
||||
validate ? HeaderValueConverterAndValidator.INSTANCE : HeaderValueConverter.INSTANCE,
|
||||
|
@ -27,21 +27,21 @@ public final class SpdyHttpHeaders {
|
||||
*/
|
||||
public static final class Names {
|
||||
/**
|
||||
* {@code "X-SPDY-Stream-ID"}
|
||||
* {@code "x-spdy-stream-id"}
|
||||
*/
|
||||
public static final AsciiString STREAM_ID = new AsciiString("X-SPDY-Stream-ID");
|
||||
public static final AsciiString STREAM_ID = new AsciiString("x-spdy-stream-id");
|
||||
/**
|
||||
* {@code "X-SPDY-Associated-To-Stream-ID"}
|
||||
* {@code "x-spdy-associated-to-stream-id"}
|
||||
*/
|
||||
public static final AsciiString ASSOCIATED_TO_STREAM_ID = new AsciiString("X-SPDY-Associated-To-Stream-ID");
|
||||
public static final AsciiString ASSOCIATED_TO_STREAM_ID = new AsciiString("x-spdy-associated-to-stream-id");
|
||||
/**
|
||||
* {@code "X-SPDY-Priority"}
|
||||
* {@code "x-spdy-priority"}
|
||||
*/
|
||||
public static final AsciiString PRIORITY = new AsciiString("X-SPDY-Priority");
|
||||
public static final AsciiString PRIORITY = new AsciiString("x-spdy-priority");
|
||||
/**
|
||||
* {@code "X-SPDY-Scheme"}
|
||||
* {@code "x-spdy-scheme"}
|
||||
*/
|
||||
public static final AsciiString SCHEME = new AsciiString("X-SPDY-Scheme");
|
||||
public static final AsciiString SCHEME = new AsciiString("x-spdy-scheme");
|
||||
|
||||
private Names() { }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user