ソースを参照

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,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;

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