comparison 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
comparison
equal deleted inserted replaced
3515:76d252724db5 3516:dd1570b6f237
1006 e->status = NGX_HTTP_INTERNAL_SERVER_ERROR; 1006 e->status = NGX_HTTP_INTERNAL_SERVER_ERROR;
1007 return; 1007 return;
1008 } 1008 }
1009 1009
1010 r->headers_out.location->hash = 1; 1010 r->headers_out.location->hash = 1;
1011 r->headers_out.location->key.len = sizeof("Location") - 1; 1011 ngx_str_set(&r->headers_out.location->key, "Location");
1012 r->headers_out.location->key.data = (u_char *) "Location";
1013 r->headers_out.location->value = e->buf; 1012 r->headers_out.location->value = e->buf;
1014 1013
1015 e->ip += sizeof(ngx_http_script_regex_end_code_t); 1014 e->ip += sizeof(ngx_http_script_regex_end_code_t);
1016 return; 1015 return;
1017 } 1016 }