HTTP/2: fixed $server_protocol value (ticket #800).

This commit is contained in:
Valentin Bartenev 2015-09-28 20:02:05 +03:00
parent 4bab18f63d
commit 20669d1949

View File

@ -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;