From 03496567865ac63ca85411f002ce05026437cd00 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 14 Aug 2007 15:00:38 +0000 Subject: allow "http://" in auth_http URL --- src/mail/ngx_mail_auth_http_module.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mail/ngx_mail_auth_http_module.c') diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c index 2cb084112..c7484c469 100644 --- a/src/mail/ngx_mail_auth_http_module.c +++ b/src/mail/ngx_mail_auth_http_module.c @@ -1383,6 +1383,11 @@ ngx_mail_auth_http(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) u.uri_part = 1; u.one_addr = 1; + if (ngx_strncmp(u.url.data, "http://", 7) == 0) { + u.url.len -= 7; + u.url.data += 7; + } + if (ngx_parse_url(cf, &u) != NGX_OK) { if (u.err) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, -- cgit