aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-12-12 20:57:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-12-12 20:57:48 +0000
commit7e8dd2578abe362cf3468353af58c8c647941ac9 (patch)
tree3d1bdc2fc8ec026d0d5e37981eb379e60c6faf37 /src
parentd1985e91f5b7da6b7aa00686139f09c01b6f3a26 (diff)
downloadnginx-7e8dd2578abe362cf3468353af58c8c647941ac9.tar.gz
nginx-7e8dd2578abe362cf3468353af58c8c647941ac9.zip
fix $r->has_request_body()
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/perl/nginx.xs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index 04754bbb4..665f14e37 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -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;