ソースを参照

An HTTP redirect status is not necessarily an indication of error (and shouldn't be reported as such)

tags/v0.8.3
Pierre-Yves Kerembellec 14年前
コミット
1a2cfef89d
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      ngx_http_uploadprogress_module.c

+ 2
- 2
ngx_http_uploadprogress_module.c ファイルの表示

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;

読み込み中…
キャンセル
保存