aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-06 18:45:00 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-06 18:45:00 +0000
commitaab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a (patch)
tree30f6fb63eb08c72af5855f0a784df32a64057706 /src/http/ngx_http_core_module.c
parent980a92472cc30271ad7e88eb2dcc43f00e984d4d (diff)
downloadnginx-aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a.tar.gz
nginx-aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a.zip
nginx-0.0.10-2004-09-06-22:45:00 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 62daa8dc1..78bb2a737 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -531,8 +531,8 @@ ngx_int_t ngx_http_find_location_config(ngx_http_request_t *r)
if (rc == NGX_HTTP_LOCATION_AUTO_REDIRECT) {
- if (!(r->headers_out.location = ngx_push_list(&r->headers_out.headers)))
- {
+ r->headers_out.location = ngx_list_push(&r->headers_out.headers);
+ if (r->headers_out.location == NULL) {
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
@@ -673,8 +673,8 @@ ngx_int_t ngx_http_set_content_type(ngx_http_request_t *r)
ngx_http_type_t *type;
ngx_http_core_loc_conf_t *clcf;
- if (!(r->headers_out.content_type = ngx_push_list(&r->headers_out.headers)))
- {
+ r->headers_out.content_type = ngx_list_push(&r->headers_out.headers);
+ if (r->headers_out.content_type == NULL) {
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}