comparison src/mail/ngx_mail_auth_http_module.c @ 560:daf4847b43ff NGINX_0_8_32

nginx 0.8.32 *) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module. Thanks to Maxim Dounin. *) Bugfix: regular expression named captures worked for two names only. Thanks to Maxim Dounin. *) Bugfix: now the "localhost" name is used in the "Host" request header line, if an unix domain socket is defined in the "auth_http" directive. Thanks to Maxim Dounin. *) Bugfix: nginx did nor support chunked transfer encoding for 201 responses. Thanks to Julian Reich. *) Bugfix: if the "expires modified" set date in the past, the a negative number was set in the "Cache-Control" response header line. Thanks to Alex Kapranoff.
author Igor Sysoev <http://sysoev.ru>
date Mon, 11 Jan 2010 00:00:00 +0300
parents c04fa65fe604
children 8246d8a2c2be
comparison
equal deleted inserted replaced
559:6026569dbf64 560:daf4847b43ff
1403 return NGX_CONF_ERROR; 1403 return NGX_CONF_ERROR;
1404 } 1404 }
1405 1405
1406 ahcf->peer = u.addrs; 1406 ahcf->peer = u.addrs;
1407 1407
1408 ahcf->host_header = u.host; 1408 if (u.family != AF_UNIX) {
1409 ahcf->host_header = u.host;
1410
1411 } else {
1412 ahcf->host_header.len = sizeof("localhost") - 1;
1413 ahcf->host_header.data = (u_char *) "localhost";
1414 }
1415
1409 ahcf->uri = u.uri; 1416 ahcf->uri = u.uri;
1410 1417
1411 if (ahcf->uri.len == 0) { 1418 if (ahcf->uri.len == 0) {
1412 ahcf->uri.len = sizeof("/") - 1; 1419 ahcf->uri.len = sizeof("/") - 1;
1413 ahcf->uri.data = (u_char *) "/"; 1420 ahcf->uri.data = (u_char *) "/";