]> git.kaiwu.me - nginx.git/commitdiff
fix $r->has_request_body()
authorIgor Sysoev <igor@sysoev.ru>
Tue, 12 Dec 2006 20:57:48 +0000 (20:57 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 12 Dec 2006 20:57:48 +0000 (20:57 +0000)
src/http/modules/perl/nginx.xs

index 04754bbb410e4a96d9f6ba831ec6fe12ab13a395..665f14e375fe0689374cd7c8341ac1d110d43d2c 100644 (file)
@@ -334,7 +334,6 @@ has_request_body(r, next)
 
     dXSTARG;
     ngx_http_request_t   *r;
-    SV                   *next;
     ngx_http_perl_ctx_t  *ctx;
 
     ngx_http_perl_set_request(r);
@@ -343,10 +342,8 @@ has_request_body(r, next)
         XSRETURN_UNDEF;
     }
 
-    next = ST(1);
-
     ctx = ngx_http_get_module_ctx(r, ngx_http_perl_module);
-    ctx->next = next;
+    ctx->next = SvRV(ST(1));
 
     r->request_body_in_single_buf = 1;
     r->request_body_in_persistent_file = 1;