Mercurial > hg > nginx
comparison src/http/modules/ngx_http_static_module.c @ 2049:2a92804f4109
*) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Jun 2008 15:00:30 +0000 |
parents | 93a0d80fdce6 |
children | 67a29af877ed |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
160 } else { | 160 } else { |
161 if (r->args.len) { | 161 if (r->args.len) { |
162 len += r->args.len + 1; | 162 len += r->args.len + 1; |
163 } | 163 } |
164 | 164 |
165 location = ngx_palloc(r->pool, len); | 165 location = ngx_pnalloc(r->pool, len); |
166 if (location == NULL) { | 166 if (location == NULL) { |
167 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 167 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
168 } | 168 } |
169 | 169 |
170 last = ngx_copy(location, r->uri.data, r->uri.len); | 170 last = ngx_copy(location, r->uri.data, r->uri.len); |