From 8243a9581b7782bc2af29e8421952d0e669f9e9e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 May 2016 11:16:30 +0200 Subject: 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. --- lib/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.1