Mercurial > hg > nginx
comparison src/http/ngx_http_header_filter.c @ 166:389d7ee9fa60
nginx-0.0.1-2003-10-30-11:51:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Oct 2003 08:51:06 +0000 |
parents | 894a01c6aea3 |
children | c0552e5ab567 |
comparison
equal
deleted
inserted
replaced
165:894a01c6aea3 | 166:389d7ee9fa60 |
---|---|
208 | 208 |
209 /* 2 is for ": " and 2 is for "\r\n" */ | 209 /* 2 is for ": " and 2 is for "\r\n" */ |
210 len += header[i].key.len + 2 + header[i].value.len + 2; | 210 len += header[i].key.len + 2 + header[i].value.len + 2; |
211 } | 211 } |
212 | 212 |
213 ngx_test_null(h, ngx_create_temp_hunk(r->pool, len, 0, 0), NGX_ERROR); | 213 ngx_test_null(h, ngx_create_temp_hunk(r->pool, len), NGX_ERROR); |
214 | 214 |
215 /* "HTTP/1.x " */ | 215 /* "HTTP/1.x " */ |
216 h->last = ngx_cpymem(h->last, "HTTP/1.1 ", sizeof("HTTP/1.x ") - 1); | 216 h->last = ngx_cpymem(h->last, "HTTP/1.1 ", sizeof("HTTP/1.x ") - 1); |
217 | 217 |
218 /* status line */ | 218 /* status line */ |