Mercurial > hg > nginx
diff src/http/ngx_http_script.c @ 3516:dd1570b6f237
ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 May 2010 09:56:37 +0000 |
parents | 1aed55182ea2 |
children | 187783310b65 |
line wrap: on
line diff
--- a/src/http/ngx_http_script.c Fri May 14 09:55:33 2010 +0000 +++ b/src/http/ngx_http_script.c Fri May 14 09:56:37 2010 +0000 @@ -1008,8 +1008,7 @@ } r->headers_out.location->hash = 1; - r->headers_out.location->key.len = sizeof("Location") - 1; - r->headers_out.location->key.data = (u_char *) "Location"; + ngx_str_set(&r->headers_out.location->key, "Location"); r->headers_out.location->value = e->buf; e->ip += sizeof(ngx_http_script_regex_end_code_t);