Skip to content

Commit 6dec7c6

Browse files
wbondmsva
authored andcommitted
Added support for tracking PUT and PATCH requests
1 parent 68b3ab3 commit 6dec7c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngx_http_uploadprogress_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ ngx_http_uploadprogress_handler(ngx_http_request_t * r)
774774
ngx_http_uploadprogress_cleanup_t *upcln;
775775
ngx_pool_cleanup_t *cln;
776776

777-
/* Is it a POST connection */
778-
if (r->method != NGX_HTTP_POST) {
777+
/* Only look for progress IDs on POST, PUT and PATCH */
778+
if (!(r->method & (NGX_HTTP_POST | NGX_HTTP_PUT | NGX_HTTP_PATCH))) {
779779
return NGX_DECLINED;
780780
}
781781

0 commit comments

Comments
 (0)