diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-05-19 11:16:30 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-05-19 11:16:30 +0200 |
commit | 8243a9581b7782bc2af29e8421952d0e669f9e9e (patch) | |
tree | 647851eb28046b08742495a87d1cec7dcb52e548 | |
parent | 194b97b39009fb849afb805486fe40dfaf1a826a (diff) |
http2: use HTTP/2 in the HTTP/1.1-alike header
... when generating them, not "2.0" as the protocol is called just
HTTP/2 and nothing else.
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index 5ca1ac451..3fe02a57a 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -877,7 +877,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame, stream->status_code = decode_status_code(value, valuelen); DEBUGASSERT(stream->status_code != -1); - Curl_add_buffer(stream->header_recvbuf, "HTTP/2.0 ", 9); + Curl_add_buffer(stream->header_recvbuf, "HTTP/2 ", 7); Curl_add_buffer(stream->header_recvbuf, value, valuelen); /* the space character after the status code is mandatory */ Curl_add_buffer(stream->header_recvbuf, " \r\n", 3); |