diff options
| author | Valentin Bartenev <vbart@nginx.com> | 2013-06-05 02:13:52 +0400 |
|---|---|---|
| committer | Valentin Bartenev <vbart@nginx.com> | 2013-06-05 02:13:52 +0400 |
| commit | ba4b4991d18aef821086488e0b93a23df8b26039 (patch) | |
| tree | 73af27d66daed9c03a02f09e58e52230c542b48d | |
| parent | d37a0a2c7a2570f4108513c09da818985c85b6f4 (diff) | |
| download | nginx-ba4b4991d18aef821086488e0b93a23df8b26039.tar.gz nginx-ba4b4991d18aef821086488e0b93a23df8b26039.tar.bz2 | |
SPDY: use proper macros for value length and headers counter.
Currently these macros are synonyms, but this may change in the future
(in particular, spdy/3 uses 4 bytes for lengths).
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_spdy_filter_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_spdy_filter_module.c b/src/http/ngx_http_spdy_filter_module.c index 8fe46b2e9..bc0089f66 100644 --- a/src/http/ngx_http_spdy_filter_module.c +++ b/src/http/ngx_http_spdy_filter_module.c @@ -304,7 +304,7 @@ ngx_http_spdy_header_filter(ngx_http_request_t *r) last = ngx_http_spdy_nv_write_val(last, "HTTP/1.1"); last = ngx_http_spdy_nv_write_name(last, "status"); - last = ngx_spdy_frame_write_uint16(last, 3); + last = ngx_http_spdy_nv_write_vlen(last, 3); last = ngx_sprintf(last, "%03ui", r->headers_out.status); count = 2; @@ -500,7 +500,7 @@ ngx_http_spdy_header_filter(ngx_http_request_t *r) count++; } - (void) ngx_spdy_frame_write_uint16(buf, count); + (void) ngx_http_spdy_nv_write_num(buf, count); stream = r->spdy_stream; sc = stream->connection; |
