From e4618c8259f34202bdf47deb2e7e7b81bd721a89 Mon Sep 17 00:00:00 2001 From: Alexander Fortin Date: Tue, 28 Aug 2012 16:57:58 +0200 Subject: [PATCH] Add support for OPTIONS, first draft --- src/ngx_http_chunkin_filter_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngx_http_chunkin_filter_module.c b/src/ngx_http_chunkin_filter_module.c index 148f944..e637a82 100644 --- a/src/ngx_http_chunkin_filter_module.c +++ b/src/ngx_http_chunkin_filter_module.c @@ -301,9 +301,9 @@ ngx_http_chunkin_resume_handler(ngx_http_request_t *r) { if (!conf->enabled || r != r->main || (r->method != NGX_HTTP_PUT && r->method != NGX_HTTP_POST && - r->method != NGX_HTTP_DELETE)) + r->method != NGX_HTTP_DELETE && r->method != NGX_HTTP_OPTIONS)) { - dd("conf not enabled or in subrequest or not POST nor PUT requests"); + dd("conf not enabled or in subrequest or not POST/PUT/DELETE/OPTIONS requests"); return NGX_HTTP_LENGTH_REQUIRED; }