File: rewrite_phase_handler

package info (click to toggle)
libnginx-mod-http-ndk 1%3A0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 892 kB
  • sloc: ansic: 3,244; sh: 422; makefile: 27
file content (19 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -p -r a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
*** a/src/http/ngx_http_core_module.c	2010-09-27 12:48:12.000000000 +0100
--- b/src/http/ngx_http_core_module.c	2010-10-09 13:44:09.000000000 +0100
*************** ngx_http_core_rewrite_phase(ngx_http_req
*** 910,915 ****
--- 910,922 ----
          return NGX_AGAIN;
      }
  
+ #if defined(nginx_version) && nginx_version >= 8042 && (NDK_REWRITE_PHASE)
+ 
+     if (rc == NGX_AGAIN || rc == NGX_DONE) {
+         return NGX_OK;
+     }
+     
+ #endif
      /* rc == NGX_OK || rc == NGX_ERROR || rc == NGX_HTTP_...  */
  
      ngx_http_finalize_request(r, rc);