diff options
Diffstat (limited to 'src/imap/ngx_imap_auth_http_module.c')
-rw-r--r-- | src/imap/ngx_imap_auth_http_module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imap/ngx_imap_auth_http_module.c b/src/imap/ngx_imap_auth_http_module.c index 75350d5ad..cedb0d830 100644 --- a/src/imap/ngx_imap_auth_http_module.c +++ b/src/imap/ngx_imap_auth_http_module.c @@ -727,7 +727,7 @@ ngx_imap_auth_sleep_handler(ngx_event_t *rev) ngx_imap_send(s->connection->write); - if (c->closed) { + if (c->destroyed) { return; } @@ -1181,6 +1181,8 @@ ngx_imap_auth_http(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) return NGX_CONF_ERROR; } + ahcf->peers->number = 1; + ahcf->host_header = inet_upstream.host_header; ahcf->uri = inet_upstream.uri; } |