Mercurial > hg > nginx-vendor-0-5
diff src/imap/ngx_imap_auth_http_module.c @ 126:df17fbafec8f NGINX_0_3_10
nginx 0.3.10
*) Change: the "valid_referers" directive and the "$invalid_referer"
variable were moved to the new ngx_http_referer_module from the
ngx_http_rewrite_module.
*) Change: the "$apache_bytes_sent" variable name was changed to
"$body_bytes_sent".
*) Feature: the "$sent_http_..." variables.
*) Feature: the "if" directive supports the "=" and "!=" operations.
*) Feature: the "proxy_pass" directive supports the HTTPS protocol.
*) Feature: the "proxy_set_body" directive.
*) Feature: the "post_action" directive.
*) Feature: the ngx_http_empty_gif_module.
*) Feature: the "worker_cpu_affinity" directive for Linux.
*) Bugfix: the "rewrite" directive did not unescape URI part in
redirect, now it is unescaped except the %00-%25 and %7F-%FF
characters.
*) Bugfix: nginx could not be built by the icc 9.0 compiler.
*) Bugfix: if the SSI was enabled for zero size static file, then the
chunked response was encoded incorrectly.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Nov 2005 00:00:00 +0300 |
parents | d25a1d6034f1 |
children | 91372f004adf |
line wrap: on
line diff
--- a/src/imap/ngx_imap_auth_http_module.c +++ b/src/imap/ngx_imap_auth_http_module.c @@ -217,7 +217,7 @@ ngx_imap_auth_http_write_handler(ngx_eve ngx_log_debug0(NGX_LOG_DEBUG_IMAP, wev->log, 0, "imap auth http write handler"); - if (wev->timedout) { + if (wev->timedout) { ngx_log_error(NGX_LOG_ERR, wev->log, NGX_ETIMEDOUT, "auth http server %V timed out", &ctx->peer.peers->peer[0].name); @@ -275,7 +275,7 @@ ngx_imap_auth_http_read_handler(ngx_even ctx = ngx_imap_get_module_ctx(s, ngx_imap_auth_http_module); - if (rev->timedout) { + if (rev->timedout) { ngx_log_error(NGX_LOG_ERR, rev->log, NGX_ETIMEDOUT, "auth http server %V timed out", &ctx->peer.peers->peer[0].name); @@ -384,7 +384,7 @@ ngx_imap_auth_http_ignore_status_line(ng state = sw_almost_done; break; - case LF: + case LF: goto done; } break; @@ -767,11 +767,11 @@ ngx_imap_auth_http_parse_header_line(ngx sw_space_before_value, sw_value, sw_space_after_value, - sw_almost_done, + sw_almost_done, sw_header_almost_done } state; - state = ctx->state; + state = ctx->state; hash = ctx->hash; for (p = ctx->response->pos; p < ctx->response->last; p++) { @@ -784,10 +784,10 @@ ngx_imap_auth_http_parse_header_line(ngx switch (ch) { case CR: - ctx->header_end = p; + ctx->header_end = p; state = sw_header_almost_done; break; - case LF: + case LF: ctx->header_end = p; goto header_done; default: @@ -1061,9 +1061,9 @@ ngx_imap_auth_http_create_request(ngx_im static void * ngx_imap_auth_http_create_conf(ngx_conf_t *cf) -{ +{ ngx_imap_auth_http_conf_t *ahcf; - + ahcf = ngx_pcalloc(cf->pool, sizeof(ngx_imap_auth_http_conf_t)); if (ahcf == NULL) { return NGX_CONF_ERROR; @@ -1128,7 +1128,7 @@ ngx_imap_auth_http_merge_conf(ngx_conf_t static char * ngx_imap_auth_http(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) -{ +{ ngx_imap_auth_http_conf_t *ahcf = conf; ngx_str_t *value, *url; @@ -1159,13 +1159,13 @@ ngx_imap_auth_http(ngx_conf_t *cf, ngx_c ahcf->host_header.len = sizeof("localhost") - 1; ahcf->host_header.data = (u_char *) "localhost"; ahcf->uri = unix_upstream.uri; - + #else ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "the unix domain sockets are not supported " "on this platform"); return NGX_CONF_ERROR; - + #endif } else { @@ -1196,7 +1196,7 @@ ngx_imap_auth_http(ngx_conf_t *cf, ngx_c static char * ngx_imap_auth_http_header(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) -{ +{ ngx_imap_auth_http_conf_t *ahcf = conf; ngx_str_t *value;