aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-07 11:10:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-07 11:10:30 +0100
commit00ea0e7db0a0a958309d35e28718949d10d537c9 (patch)
tree0bf576909106ce0b1abc010805a5cf4c7783db5c /lib/http.c
parentdf28af8f39dee6780c6fa354d695c8ce8d10c58e (diff)
http2: use CURL_HTTP_VERSION_* symbols instead of NPN_*
Since they already exist and will make comparing easier
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index e673a069b..dff164b5e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1795,7 +1795,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if(conn->httpversion < 20) { /* unless the connection is re-used and already
http2 */
switch(conn->negnpn) {
- case NPN_HTTP2:
+ case CURL_HTTP_VERSION_2_0:
result = Curl_http2_init(conn);
if(result)
return result;
@@ -1808,7 +1808,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if(result)
return result;
break;
- case NPN_HTTP1_1:
+ case CURL_HTTP_VERSION_1_1:
/* continue with HTTP/1.1 when explicitly requested */
break;
default: