From e1f72441b20571c04edf2788015573be44087df6 Mon Sep 17 00:00:00 2001 From: simon987 <me@simon987.net> Date: Mon, 25 May 2020 21:59:11 -0400 Subject: [PATCH] tell nginx to not process further handlers --- ngx_http_js_challenge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ngx_http_js_challenge.c b/ngx_http_js_challenge.c index 1b30397..02b2fad 100644 --- a/ngx_http_js_challenge.c +++ b/ngx_http_js_challenge.c @@ -235,7 +235,8 @@ int serve_challenge(ngx_http_request_t *r, const char *challenge, const char *ht r->headers_out.content_length_n = size; ngx_http_send_header(r); - return ngx_http_output_filter(r, &out); + ngx_http_output_filter(r, &out); + return NGX_DONE; }