Mercurial > hg > nginx
comparison src/http/ngx_http_spdy_module.c @ 5549:39d7eef2e332
SPDY: protocol implementation switched to spdy/3.1.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 31 Jan 2014 19:17:26 +0400 |
parents | e5fb14e85040 |
children | 02ee639d18a8 |
comparison
equal
deleted
inserted
replaced
5548:4d47722d76b2 | 5549:39d7eef2e332 |
---|---|
178 static ngx_int_t | 178 static ngx_int_t |
179 ngx_http_spdy_variable(ngx_http_request_t *r, | 179 ngx_http_spdy_variable(ngx_http_request_t *r, |
180 ngx_http_variable_value_t *v, uintptr_t data) | 180 ngx_http_variable_value_t *v, uintptr_t data) |
181 { | 181 { |
182 if (r->spdy_stream) { | 182 if (r->spdy_stream) { |
183 v->len = 1; | 183 v->len = sizeof("3.1") - 1; |
184 v->valid = 1; | 184 v->valid = 1; |
185 v->no_cacheable = 0; | 185 v->no_cacheable = 0; |
186 v->not_found = 0; | 186 v->not_found = 0; |
187 v->data = (u_char *) "2"; | 187 v->data = (u_char *) "3.1"; |
188 | 188 |
189 return NGX_OK; | 189 return NGX_OK; |
190 } | 190 } |
191 | 191 |
192 *v = ngx_http_variable_null_value; | 192 *v = ngx_http_variable_null_value; |