comparison src/http/modules/ngx_http_proxy_module.c @ 554:5c576ea5dbd9 NGINX_0_8_29

nginx 0.8.29 *) Change: now the "009" status code is written to an access log for proxied HTTP/0.9 responses. *) Feature: the "addition_types", "charset_types", "gzip_types", "ssi_types", "sub_filter_types", and "xslt_types" directives support an "*" parameter. *) Feature: GCC 4.1+ built-in atomic operations usage. Thanks to W-Mark Kubacki. *) Feature: the --with-libatomic[=DIR] option in the configure. Thanks to W-Mark Kubacki. *) Bugfix: listen unix domain socket had limited access rights. *) Bugfix: cached HTTP/0.9 responses were handled incorrectly. *) Bugfix: regular expression named captures given by "?P<...>" did not work in a "server_name" directive. Thanks to Maxim Dounin.
author Igor Sysoev <http://sysoev.ru>
date Mon, 30 Nov 2009 00:00:00 +0300
parents e19e5f542878
children 2da4537168f8
comparison
equal deleted inserted replaced
553:63dde5a94756 554:5c576ea5dbd9
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