From: Igor Sysoev Date: Tue, 12 Dec 2006 20:57:48 +0000 (+0000) Subject: fix $r->has_request_body() X-Git-Tag: release-0.5.3~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=7e8dd2578abe362cf3468353af58c8c647941ac9;p=nginx.git fix $r->has_request_body() --- 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;