summaryrefslogtreecommitdiff
path: root/src/http/ngx_http.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-03-04 14:04:26 +0000
committerJonathan Kolb <jon@b0g.us>2005-03-04 14:04:26 +0000
commitc5e300ff4b3366bcafaa41e44b8981c992669cec (patch)
tree4d3528124d88abae2db0594a921d7e834061cdee /src/http/ngx_http.h
parentf201d049a71e500be3ce9d85b93f034285344c38 (diff)
downloadnginx-c5e300ff4b3366bcafaa41e44b8981c992669cec.tar.gz
Changes with nginx 0.1.24 04 Mar 2005v0.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.h16
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);