Re: Nginx use temp file as request body in post subrequest

2021-03-10 Thread salmaanp
I guess we still need the request buf, so made these changes which seemed better. but the behavior is still same. Went though the code for upstream create request and looks like the body is always read from buffer. ngx_buf_t *payload_buf = NULL; payload_buf = ngx_create_temp_buf(r->pool,

Nginx use temp file as request body in post subrequest

2021-03-10 Thread salmaanp
I'm building an nginx module and trying to create a post subrequest from the main request. The response from the main request buffers is saved to a nginx temp file and a post subrequest is created. The body of the post subrequest is from the nginx temp file instead of buffers. ``` ngx_http_re