mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 12:14:27 -06:00
allow "http://" in auth_http URL
This commit is contained in:
parent
824bcf333f
commit
0349656786
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user