We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b3ab3 commit 6dec7c6Copy full SHA for 6dec7c6
ngx_http_uploadprogress_module.c
@@ -774,8 +774,8 @@ ngx_http_uploadprogress_handler(ngx_http_request_t * r)
774
ngx_http_uploadprogress_cleanup_t *upcln;
775
ngx_pool_cleanup_t *cln;
776
777
- /* Is it a POST connection */
778
- if (r->method != NGX_HTTP_POST) {
+ /* Only look for progress IDs on POST, PUT and PATCH */
+ if (!(r->method & (NGX_HTTP_POST | NGX_HTTP_PUT | NGX_HTTP_PATCH))) {
779
return NGX_DECLINED;
780
}
781
0 commit comments