diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-09-06 00:05:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-11-20 23:33:34 +0100 |
commit | d62706ec6d904d9857904705eeefd8965ee55aee (patch) | |
tree | ecb0643f2edcec752eb1740c1093c0c656b08c96 /lib | |
parent | 4c3cfc7558fca29e39f142fd3fc3e297c0ceb09b (diff) |
http.c: log if it notices HTTP 1.1 after a upgrade to http2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index 2e9fd7d71..b50d00f15 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3216,6 +3216,12 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, &k->httpcode); if(nc==3) { conn->httpversion += 10 * httpversion_major; + + if(k->upgr101 == UPGR101_RECEIVED) { + /* supposedly upgraded to http2 now */ + if(conn->httpversion != 20) + infof(data, "Lying server, not serving HTTP/2\n"); + } } else { /* this is the real world, not a Nirvana |