Hello!
On Sun, Mar 13, 2016 at 5:52 AM, David Birdsong wrote:
> I'm pretty sure this should work, but I'm getting totally stuck in trying to
> convert a request body to a file located on the server.
>
> The error log is not particularly helpful here:
>
> 2016/03/13 12:46:18 [error] 25108#0: *1 the request body was not read by
> ngx_lua, client: 127.0.0.1, server: , request: "GET /_repl?foo=bar
> HTTP/1.1", host: "127.0.0.1:8090"
The error message is clear, I think :) It's your responsibility to
read the request body (in the main request) before creating any
subrequests. In the NGINX core, subrequests can never read the request
bodies themselves and only main requests can.
Regards,
-agentzh