diff options
author | Igor Sysoev <igor@sysoev.ru> | 2005-03-04 17:06:57 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2005-03-04 17:06:57 +0300 |
commit | 8184d1b3a72c31e7e6492fc189d687ce85548279 (patch) | |
tree | 34e977c47f852d35117464b3cd5e82253fb4fa04 /src/http/ngx_http.h | |
parent | 7ad4a94eee3e17e073d6e8b638b7bd0a2209d2df (diff) |
nginx-0.1.24-RELEASE importrelease-0.1.24
*) Feature: the ngx_http_ssi_filter_module supports the QUERY_STRING
and DOCUMENT_URI variables.
*) Bugfix: the ngx_http_autoindex_module may some times return the 404
response for existent directory, if this directory was used in
"alias" directive.
*) Bugfix: the ngx_http_ssi_filter_module ran incorrectly for large
responses.
*) Bugfix: the lack of the "Referer" header line was always accounted
as valid referrer.
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r-- | src/http/ngx_http.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index a21c6709f..6f19af1c8 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -29,6 +29,7 @@ typedef struct ngx_http_in_addr_s ngx_http_in_addr_t; #include <ngx_http_busy_lock.h> #include <ngx_http_log_handler.h> #include <ngx_http_core_module.h> +#include <ngx_http_variables.h> #if (NGX_HTTP_SSL) #include <ngx_http_ssl_module.h> @@ -41,9 +42,9 @@ struct ngx_http_log_ctx_s { }; -#define ngx_http_get_module_ctx(r, module) r->ctx[module.ctx_index] +#define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index] #define ngx_http_get_module_err_ctx(r, module) \ - (r->err_ctx ? r->err_ctx[module.ctx_index] : r->ctx[module.ctx_index]) + ((r)->err_ctx ? (r)->err_ctx[module.ctx_index] : (r)->ctx[module.ctx_index]) /* STUB */ #define ngx_http_create_ctx(r, cx, module, size, error) \ @@ -53,11 +54,9 @@ struct ngx_http_log_ctx_s { } while (0) /**/ -#define ngx_http_set_ctx(r, c, module) \ - r->ctx[module.ctx_index] = c; +#define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c; -#define ngx_http_delete_ctx(r, module) \ - r->ctx[module.ctx_index] = NULL; +#define ngx_http_delete_ctx(r, module) r->ctx[module.ctx_index] = NULL; void ngx_http_init_connection(ngx_connection_t *c); @@ -79,10 +78,11 @@ void ngx_http_close_connection(ngx_connection_t *c); ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r, - ngx_http_client_body_handler_pt post_handler); + ngx_http_client_body_handler_pt post_handler); ngx_int_t ngx_http_send_header(ngx_http_request_t *r); -ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r, int error); +ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r, + ngx_int_t error); time_t ngx_http_parse_time(u_char *value, size_t len); |