Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_auth_basic_module.c @ 570:8246d8a2c2be NGINX_0_8_37
nginx 0.8.37
*) Feature: the ngx_http_split_clients_module.
*) Feature: the "map" directive supports keys more than 255 characters.
*) Bugfix: nginx ignored the "private" and "no-store" values in the
"Cache-Control" backend response header line.
*) Bugfix: a "stub" parameter of an "include" SSI directive was not
used, if empty response has 200 status code.
*) Bugfix: if a proxied or FastCGI request was internally redirected to
another proxied or FastCGI location, then a segmentation fault might
occur in a worker process; the bug had appeared in 0.8.33.
Thanks to Yichun Zhang.
*) Bugfix: IMAP connections may hang until they timed out while talking
to Zimbra server.
Thanks to Alan Batie.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 17 May 2010 00:00:00 +0400 |
parents | f39b9e29530d |
children | b4dcae568a2a |
comparison
equal
deleted
inserted
replaced
569:19b134bf21c0 | 570:8246d8a2c2be |
---|---|
346 if (r->headers_out.www_authenticate == NULL) { | 346 if (r->headers_out.www_authenticate == NULL) { |
347 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 347 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
348 } | 348 } |
349 | 349 |
350 r->headers_out.www_authenticate->hash = 1; | 350 r->headers_out.www_authenticate->hash = 1; |
351 r->headers_out.www_authenticate->key.len = sizeof("WWW-Authenticate") - 1; | 351 ngx_str_set(&r->headers_out.www_authenticate->key, "WWW-Authenticate"); |
352 r->headers_out.www_authenticate->key.data = (u_char *) "WWW-Authenticate"; | |
353 r->headers_out.www_authenticate->value = *realm; | 352 r->headers_out.www_authenticate->value = *realm; |
354 | 353 |
355 return NGX_HTTP_UNAUTHORIZED; | 354 return NGX_HTTP_UNAUTHORIZED; |
356 } | 355 } |
357 | 356 |
423 | 422 |
424 size_t len; | 423 size_t len; |
425 u_char *basic, *p; | 424 u_char *basic, *p; |
426 | 425 |
427 if (ngx_strcmp(realm->data, "off") == 0) { | 426 if (ngx_strcmp(realm->data, "off") == 0) { |
428 realm->len = 0; | 427 ngx_str_set(realm, ""); |
429 realm->data = (u_char *) ""; | |
430 | |
431 return NGX_CONF_OK; | 428 return NGX_CONF_OK; |
432 } | 429 } |
433 | 430 |
434 len = sizeof("Basic realm=\"") - 1 + realm->len + 1; | 431 len = sizeof("Basic realm=\"") - 1 + realm->len + 1; |
435 | 432 |