]> git.kaiwu.me - nginx.git/commitdiff
set status in correct place
authorIgor Sysoev <igor@sysoev.ru>
Tue, 6 Nov 2007 15:01:13 +0000 (15:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 6 Nov 2007 15:01:13 +0000 (15:01 +0000)
src/http/modules/ngx_http_proxy_module.c

index 0ce507192fa3d8a31b87e2ad7f61786c2ddab3bd..9eae90324960a8b7217817682b3d686fcc69913a 100644 (file)
@@ -860,7 +860,8 @@ ngx_http_proxy_process_status_line(ngx_http_request_t *r)
 #endif
 
         r->http_version = NGX_HTTP_VERSION_9;
-        p->status = NGX_HTTP_OK;
+        u->headers_in.status_n = NGX_HTTP_OK;
+        u->state->status = NGX_HTTP_OK;
 
         return NGX_OK;
     }