Skip to content

Commit b28f605

Browse files
wbondmsva
authored andcommitted
Added support for tracking PUT and PATCH requests
1 parent afb2d31 commit b28f605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngx_http_uploadprogress_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ ngx_http_uploadprogress_handler(ngx_http_request_t * r)
765765
ngx_http_uploadprogress_cleanup_t *upcln;
766766
ngx_pool_cleanup_t *cln;
767767

768-
/* Is it a POST connection */
769-
if (r->method != NGX_HTTP_POST) {
768+
/* Only look for progress IDs on POST, PUT and PATCH */
769+
if (!(r->method & (NGX_HTTP_POST | NGX_HTTP_PUT | NGX_HTTP_PATCH))) {
770770
return NGX_DECLINED;
771771
}
772772

0 commit comments

Comments
 (0)