Mercurial > hg > nginx-quic
comparison src/imap/ngx_imap_auth_http_module.c @ 906:a0310ac2814f
rewritten upstream
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Dec 2006 16:46:16 +0000 |
parents | 4d68c486fcb0 |
children | db7c468c447d |
comparison
equal
deleted
inserted
replaced
905:be52cfdb3e31 | 906:a0310ac2814f |
---|---|
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 *) "/"; |