mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
194b97b390
commit
8243a9581b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user