|
|
@@ -675,7 +675,7 @@ ngx_http_reportuploads_handler(ngx_http_request_t * r)
|
|
675
|
675
|
/*
|
|
676
|
676
|
There are 4 possibilities
|
|
677
|
677
|
* request not yet started: found = false
|
|
678
|
|
- * request in error: err_status >= NGX_HTTP_SPECIAL_RESPONSE
|
|
|
678
|
+ * request in error: err_status >= NGX_HTTP_BAD_REQUEST
|
|
679
|
679
|
* request finished: done = true
|
|
680
|
680
|
* request not yet started but registered: length==0 && rest ==0
|
|
681
|
681
|
* reauest in progress: rest > 0
|
|
|
@@ -683,7 +683,7 @@ ngx_http_reportuploads_handler(ngx_http_request_t * r)
|
|
683
|
683
|
|
|
684
|
684
|
if (!found) {
|
|
685
|
685
|
state = uploadprogress_state_starting;
|
|
686
|
|
- } else if (err_status >= NGX_HTTP_SPECIAL_RESPONSE) {
|
|
|
686
|
+ } else if (err_status >= NGX_HTTP_BAD_REQUEST) {
|
|
687
|
687
|
state = uploadprogress_state_error;
|
|
688
|
688
|
} else if (done) {
|
|
689
|
689
|
state = uploadprogress_state_done;
|