GitHub Merge Button 14 år sedan
förälder
incheckning
469c3d8889
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      ngx_http_uploadprogress_module.c

+ 2
- 2
ngx_http_uploadprogress_module.c Visa fil

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

Laddar…
Avbryt
Spara