Merge pull request #19 from bnchdan/NGX_HTTP_SERVICE_UNAVAILABLE

adding NGX_HTTP_SERVICE_UNAVAILABLE
This commit is contained in:
2022-11-21 21:52:09 -05:00
committed by GitHub

View File

@@ -231,7 +231,7 @@ int serve_challenge(ngx_http_request_t *r, const char *challenge, const char *ht
b->memory = 1; b->memory = 1;
b->last_buf = 1; b->last_buf = 1;
r->headers_out.status = NGX_HTTP_OK; r->headers_out.status = NGX_HTTP_SERVICE_UNAVAILABLE;
r->headers_out.content_length_n = size; r->headers_out.content_length_n = size;
r->headers_out.content_type = content_type; r->headers_out.content_type = content_type;
ngx_http_send_header(r); ngx_http_send_header(r);