diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-11-17 09:30:46 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-11-17 09:30:46 +0000 |
commit | a4beda6c09328658e40a89b53bb985dae906d18e (patch) | |
tree | 39e426c46ce80bf2b0454a86e63490684fcff5a7 /src/imap/ngx_imap_auth_http_module.c | |
parent | 478ceec7e39f1b17105a97e6561bfcbccdd7994d (diff) | |
download | nginx-a4beda6c09328658e40a89b53bb985dae906d18e.tar.gz nginx-a4beda6c09328658e40a89b53bb985dae906d18e.zip |
use correct auth method length
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 867707f90..beca1950d 100644 --- a/src/imap/ngx_imap_auth_http_module.c +++ b/src/imap/ngx_imap_auth_http_module.c @@ -1039,7 +1039,9 @@ ngx_imap_auth_http_create_request(ngx_imap_session_t *s, ngx_pool_t *pool, len = sizeof("GET ") - 1 + ahcf->uri.len + sizeof(" HTTP/1.0" CRLF) - 1 + sizeof("Host: ") - 1 + ahcf->host_header.len + sizeof(CRLF) - 1 - + sizeof("Auth-Method: plain" CRLF) - 1 + + sizeof("Auth-Method: ") - 1 + + ngx_imap_auth_http_method[s->auth_method].len + + sizeof(CRLF) - 1 + sizeof("Auth-User: ") - 1 + login.len + sizeof(CRLF) - 1 + sizeof("Auth-Pass: ") - 1 + passwd.len + sizeof(CRLF) - 1 + sizeof("Auth-Salt: ") - 1 + s->salt.len |