diff options
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r-- | src/http/ngx_http.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index 26dde7fca..aef53e891 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -21,6 +21,8 @@ typedef struct { #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]) #define ngx_http_create_ctx(r, cx, module, size, error) \ do { \ |