http2: use CURL_HTTP_VERSION_* symbols instead of NPN_*

Since they already exist and will make comparing easier
This commit is contained in:
Daniel Stenberg
2015-03-07 11:10:30 +01:00
parent df28af8f39
commit 00ea0e7db0
6 changed files with 14 additions and 20 deletions

View File

@@ -469,12 +469,12 @@ polarssl_connect_step2(struct connectdata *conn,
#ifdef USE_NGHTTP2
if(!strncmp(next_protocol, NGHTTP2_PROTO_VERSION_ID,
NGHTTP2_PROTO_VERSION_ID_LEN)) {
conn->negnpn = NPN_HTTP2;
conn->negnpn = CURL_HTTP_VERSION_2_0;
}
else
#endif
if(!strncmp(next_protocol, ALPN_HTTP_1_1, ALPN_HTTP_1_1_LENGTH)) {
conn->negnpn = NPN_HTTP1_1;
conn->negnpn = CURL_HTTP_VERSION_1_1;
}
}
else