diff options
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r-- | src/http/ngx_http_script.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 9826ecea5..94793d7e7 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -833,6 +833,10 @@ ngx_http_script_return_code(ngx_http_script_engine_t *e) e->status = code->status; + if (code->status == NGX_HTTP_NO_CONTENT) { + e->request->header_only = 1; + } + e->ip += sizeof(ngx_http_script_return_code_t) - sizeof(uintptr_t); } |