We are using using nginx with lua open resty.
We are using Open Resty httpc:request method with a read timeout of 5 minutes.
For requests involving large contents approximately 5MB and above we see that Browser is not getting the full content of the file inspite seeing a 200 OK response when Content-Length not present in response header.
Method httpc:set_keepalive after request method gives Error - Error: unread data in buffer
What could be the reason for these issues. what should be the ideal way of retrieving full file content from server.
Upstream server is outside our control, so we are restricted with not having Content-Length in response header.