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
da39e601e0
commit
428c11ea59
@ -29,21 +29,21 @@ public final class SpdyHttpHeaders {
|
||||
*/
|
||||
public static final class Names {
|
||||
/**
|
||||
* {@code "X-SPDY-Stream-ID"}
|
||||
* {@code "x-spdy-stream-id"}
|
||||
*/
|
||||
public static final String STREAM_ID = "X-SPDY-Stream-ID";
|
||||
public static final String STREAM_ID = "x-spdy-stream-id";
|
||||
/**
|
||||
* {@code "X-SPDY-Associated-To-Stream-ID"}
|
||||
* {@code "x-spdy-associated-to-stream-id"}
|
||||
*/
|
||||
public static final String ASSOCIATED_TO_STREAM_ID = "X-SPDY-Associated-To-Stream-ID";
|
||||
public static final String ASSOCIATED_TO_STREAM_ID = "x-spdy-associated-to-stream-id";
|
||||
/**
|
||||
* {@code "X-SPDY-Priority"}
|
||||
* {@code "x-spdy-priority"}
|
||||
*/
|
||||
public static final String PRIORITY = "X-SPDY-Priority";
|
||||
public static final String PRIORITY = "x-spdy-priority";
|
||||
/**
|
||||
* {@code "X-SPDY-Scheme"}
|
||||
* {@code "x-spdy-scheme"}
|
||||
*/
|
||||
public static final String SCHEME = "X-SPDY-Scheme";
|
||||
public static final String SCHEME = "x-spdy-scheme";
|
||||
|
||||
private Names() { }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user