comparison src/http/v2/ngx_http_v2.c @ 6256:9dfc4ba140f9

HTTP/2: fixed $server_protocol value (ticket #800).
author Valentin Bartenev <vbart@nginx.com>
date Mon, 28 Sep 2015 20:02:05 +0300
parents 081a073e5164
children 0e37389c0bd5
comparison
equal deleted inserted replaced
6255:b40af2fd1c16 6256:9dfc4ba140f9
2760 r = ngx_http_create_request(fc); 2760 r = ngx_http_create_request(fc);
2761 if (r == NULL) { 2761 if (r == NULL) {
2762 return NULL; 2762 return NULL;
2763 } 2763 }
2764 2764
2765 ngx_str_set(&r->http_protocol, "HTTP/2.0");
2766
2765 r->http_version = NGX_HTTP_VERSION_20; 2767 r->http_version = NGX_HTTP_VERSION_20;
2766 r->valid_location = 1; 2768 r->valid_location = 1;
2767 2769
2768 fc->data = r; 2770 fc->data = r;
2769 h2c->connection->requests++; 2771 h2c->connection->requests++;