comparison src/imap/ngx_imap_auth_http_module.c @ 266:251bcd11a5b8 NGINX_0_5_3

nginx 0.5.3 *) Feature: the ngx_http_perl_module supports the $r->status, $r->log_error, and $r->sleep methods. *) Feature: the $r->variable method supports variables that do not exist in nginx configuration. *) Bugfix: the $r->has_request_body method did not work.
author Igor Sysoev <http://sysoev.ru>
date Wed, 13 Dec 2006 00:00:00 +0300
parents 0effe91f6083
children 5bef04fc3fd5
comparison
equal deleted inserted replaced
265:3d4634b3b321 266:251bcd11a5b8
1289 value = cf->args->elts; 1289 value = cf->args->elts;
1290 1290
1291 ngx_memzero(&u, sizeof(ngx_url_t)); 1291 ngx_memzero(&u, sizeof(ngx_url_t));
1292 1292
1293 u.url = value[1]; 1293 u.url = value[1];
1294 u.default_portn = 80; 1294 u.default_port = 80;
1295 u.uri_part = 1; 1295 u.uri_part = 1;
1296 u.one_addr = 1; 1296 u.one_addr = 1;
1297 1297
1298 if (ngx_parse_url(cf, &u) != NGX_OK) { 1298 if (ngx_parse_url(cf, &u) != NGX_OK) {
1299 if (u.err) { 1299 if (u.err) {
1302 } 1302 }
1303 } 1303 }
1304 1304
1305 ahcf->peer = u.addrs; 1305 ahcf->peer = u.addrs;
1306 1306
1307 ahcf->host_header = u.host_header; 1307 ahcf->host_header = u.host;
1308 ahcf->uri = u.uri; 1308 ahcf->uri = u.uri;
1309 1309
1310 if (ahcf->uri.len == 0) { 1310 if (ahcf->uri.len == 0) {
1311 ahcf->uri.len = sizeof("/") - 1; 1311 ahcf->uri.len = sizeof("/") - 1;
1312 ahcf->uri.data = (u_char *) "/"; 1312 ahcf->uri.data = (u_char *) "/";