comparison src/http/ngx_http_header_filter_module.c @ 376:edf1cb6c328e NGINX_0_7_0

nginx 0.7.0 *) Change: now the 0x00-0x1F, '"' and '\' characters are escaped as \xXX in an access_log. Thanks to Maxim Dounin. *) Change: now nginx allows several "Host" request header line. *) Feature: the "modified" flag in the "expires" directive. *) Feature: the $uid_got and $uid_set variables may be used at any request processing stage. *) Feature: the $hostname variable. Thanks to Andrei Nigmatulin. *) Feature: DESTDIR support. Thanks to Todd A. Fisher and Andras Voroskoi. *) Bugfix: a segmentation fault might occur in worker process on Linux, if keepalive was enabled.
author Igor Sysoev <http://sysoev.ru>
date Mon, 19 May 2008 00:00:00 +0400
parents 54fad6c4b555
children 820f6378fc00
comparison
equal deleted inserted replaced
375:52f3c9c7eff0 376:edf1cb6c328e
284 284
285 if (clcf->server_name_in_redirect) { 285 if (clcf->server_name_in_redirect) {
286 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); 286 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
287 host = cscf->server_name; 287 host = cscf->server_name;
288 288
289 } else if (r->headers_in.host) { 289 } else if (r->headers_in.server.len) {
290 host.len = r->headers_in.host_name_len; 290 host = r->headers_in.server;
291 host.data = r->headers_in.host->value.data;
292 291
293 } else { 292 } else {
294 host.data = addr; 293 host.data = addr;
295 294
296 if (ngx_http_server_addr(r, &host) != NGX_OK) { 295 if (ngx_http_server_addr(r, &host) != NGX_OK) {