mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
HTTP/2: fixed $server_protocol value (ticket #800).
This commit is contained in:
parent
4bab18f63d
commit
20669d1949
@ -2762,6 +2762,8 @@ ngx_http_v2_create_stream(ngx_http_v2_connection_t *h2c)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ngx_str_set(&r->http_protocol, "HTTP/2.0");
|
||||||
|
|
||||||
r->http_version = NGX_HTTP_VERSION_20;
|
r->http_version = NGX_HTTP_VERSION_20;
|
||||||
r->valid_location = 1;
|
r->valid_location = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user