mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
fix $r->has_request_body()
This commit is contained in:
parent
d1985e91f5
commit
7e8dd2578a
@ -334,7 +334,6 @@ has_request_body(r, next)
|
|||||||
|
|
||||||
dXSTARG;
|
dXSTARG;
|
||||||
ngx_http_request_t *r;
|
ngx_http_request_t *r;
|
||||||
SV *next;
|
|
||||||
ngx_http_perl_ctx_t *ctx;
|
ngx_http_perl_ctx_t *ctx;
|
||||||
|
|
||||||
ngx_http_perl_set_request(r);
|
ngx_http_perl_set_request(r);
|
||||||
@ -343,10 +342,8 @@ has_request_body(r, next)
|
|||||||
XSRETURN_UNDEF;
|
XSRETURN_UNDEF;
|
||||||
}
|
}
|
||||||
|
|
||||||
next = ST(1);
|
|
||||||
|
|
||||||
ctx = ngx_http_get_module_ctx(r, ngx_http_perl_module);
|
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_single_buf = 1;
|
||||||
r->request_body_in_persistent_file = 1;
|
r->request_body_in_persistent_file = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user