comparison src/http/modules/ngx_http_proxy_module.c @ 3370:bfe37ab335b5

log proxied HTTP/0.9 responses status as "009"
author Igor Sysoev <igor@sysoev.ru>
date Sun, 29 Nov 2009 20:49:29 +0000
parents 9421e997c2c4
children 3b2a8a0dca8e
comparison
equal deleted inserted replaced
3369:479468a7d982 3370:bfe37ab335b5
1228 1228
1229 #if (NGX_HTTP_CACHE) 1229 #if (NGX_HTTP_CACHE)
1230 1230
1231 if (r->cache) { 1231 if (r->cache) {
1232 r->http_version = NGX_HTTP_VERSION_9; 1232 r->http_version = NGX_HTTP_VERSION_9;
1233 u->headers_in.status_n = NGX_HTTP_OK;
1234 return NGX_OK; 1233 return NGX_OK;
1235 } 1234 }
1236 1235
1237 #endif 1236 #endif
1238 1237
1244 return NGX_HTTP_UPSTREAM_INVALID_HEADER; 1243 return NGX_HTTP_UPSTREAM_INVALID_HEADER;
1245 } 1244 }
1246 #endif 1245 #endif
1247 1246
1248 r->http_version = NGX_HTTP_VERSION_9; 1247 r->http_version = NGX_HTTP_VERSION_9;
1249 u->headers_in.status_n = NGX_HTTP_OK;
1250 u->state->status = NGX_HTTP_OK; 1248 u->state->status = NGX_HTTP_OK;
1251 1249
1252 return NGX_OK; 1250 return NGX_OK;
1253 } 1251 }
1254 1252