Skip to content

Commit

Permalink
Merge pull request #948 from zwoop/TS-3407
Browse files Browse the repository at this point in the history
TS-3407 Removes the legacy h2-14 identifiers
  • Loading branch information
zwoop committed Sep 1, 2016
2 parents 01206ce + 1d7c1ee commit 55c1a8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
9 changes: 4 additions & 5 deletions lib/records/RecHttp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ SessionProtocolNameRegistry globalSessionProtocolNameRegistry;
These are also used for NPN setup.
*/

const char *const TS_ALPN_PROTOCOL_HTTP_0_9 = "http/0.9";
const char *const TS_ALPN_PROTOCOL_HTTP_1_0 = "http/1.0";
const char *const TS_ALPN_PROTOCOL_HTTP_1_1 = "http/1.1";
const char *const TS_ALPN_PROTOCOL_HTTP_2_0_14 = "h2-14"; // Last H2 interrop draft. TODO: Should be removed later
const char *const TS_ALPN_PROTOCOL_HTTP_2_0 = "h2"; // HTTP/2 over TLS
const char *const TS_ALPN_PROTOCOL_HTTP_0_9 = "http/0.9";
const char *const TS_ALPN_PROTOCOL_HTTP_1_0 = "http/1.0";
const char *const TS_ALPN_PROTOCOL_HTTP_1_1 = "http/1.1";
const char *const TS_ALPN_PROTOCOL_HTTP_2_0 = "h2"; // HTTP/2 over TLS

const char *const TS_ALPN_PROTOCOL_GROUP_HTTP = "http";
const char *const TS_ALPN_PROTOCOL_GROUP_HTTP2 = "http2";
Expand Down
1 change: 0 additions & 1 deletion lib/ts/apidefs.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,6 @@ extern tsapi int TS_HTTP_LEN_PUSH;
extern tsapi const char *const TS_ALPN_PROTOCOL_HTTP_0_9;
extern tsapi const char *const TS_ALPN_PROTOCOL_HTTP_1_0;
extern tsapi const char *const TS_ALPN_PROTOCOL_HTTP_1_1;
extern tsapi const char *const TS_ALPN_PROTOCOL_HTTP_2_0_14;
extern tsapi const char *const TS_ALPN_PROTOCOL_HTTP_2_0;

extern tsapi int TS_ALPN_PROTOCOL_INDEX_HTTP_0_9;
Expand Down
2 changes: 1 addition & 1 deletion proxy/hdrs/HdrToken.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ hdrtoken_wks_to_flags(const char *wks)
-------------------------------------------------------------------------*/

// HTTP/2 Upgrade token
#define MIME_UPGRADE_H2C_TOKEN "h2c-14"
#define MIME_UPGRADE_H2C_TOKEN "h2c"

/*-------------------------------------------------------------------------
-------------------------------------------------------------------------*/
Expand Down
2 changes: 0 additions & 2 deletions proxy/http/HttpProxyServerMain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ MakeHttpProxyAcceptor(HttpProxyAcceptor &acceptor, HttpProxyPort &port, unsigned
if (port.m_session_protocol_preference.contains(TS_ALPN_PROTOCOL_INDEX_HTTP_2_0)) {
Http2SessionAccept *acc = new Http2SessionAccept(accept_opt);

// TODO: Should be removed when h2-14 is gone and dead, and h2 is widely supported in UAs
ssl->registerEndpoint(TS_ALPN_PROTOCOL_HTTP_2_0_14, acc);
ssl->registerEndpoint(TS_ALPN_PROTOCOL_HTTP_2_0, acc);
}

Expand Down

0 comments on commit 55c1a8f

Please sign in to comment.