Hi there - I noticed that if a larger request is buffered to a file, read_body_as_string doesn't return any data.
The lapis request object appears to only call ngx.req.get_body_data() which will return nil if the request was buffered to disk. In the OpenResty docs they recommend trying ngx.req.get_body_data(), then falling back to ngx.req.get_body_file()
Hi there - I noticed that if a larger request is buffered to a file,
read_body_as_string
doesn't return any data.The lapis request object appears to only call
ngx.req.get_body_data()
which will returnnil
if the request was buffered to disk. In the OpenResty docs they recommend tryingngx.req.get_body_data(),
then falling back tongx.req.get_body_file()