nginx-0.1.26-RELEASE import
*) Change: the invalid client header lines are now ignored and logged
at the info level.
*) Change: the server name is also logged in error log.
*) Feature: the ngx_http_auth_basic_module module and the auth_basic
and auth_basic_user_file directives.
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 413af2f..a1e9ae5 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -55,6 +55,7 @@
#define NGX_HTTP_NOT_MODIFIED 304
#define NGX_HTTP_BAD_REQUEST 400
+#define NGX_HTTP_UNAUTHORIZED 401
#define NGX_HTTP_FORBIDDEN 403
#define NGX_HTTP_NOT_FOUND 404
#define NGX_HTTP_NOT_ALLOWED 405
@@ -157,6 +158,9 @@
ngx_table_elt_t *accept_language;
#endif
+ ngx_str_t user;
+ ngx_str_t passwd;
+
ngx_array_t cookies;
size_t host_name_len;
@@ -194,6 +198,7 @@
ngx_table_elt_t *last_modified;
ngx_table_elt_t *content_range;
ngx_table_elt_t *accept_ranges;
+ ngx_table_elt_t *www_authenticate;
ngx_table_elt_t *expires;
ngx_table_elt_t *cache_control;
ngx_table_elt_t *etag;
@@ -336,6 +341,8 @@
unsigned uri_changed:1;
unsigned uri_changes:4;
+ unsigned invalid_header:1;
+
unsigned low_case_exten:1;
unsigned header_timeout_set:1;