openresty / lua-resty-upload

Streaming reader and parser for http file uploading based on ngx_lua cosocket
404 stars 113 forks source link

Extend to support the R-proxy mode #42

Open whuben opened 6 years ago

whuben commented 6 years ago

init a body buffer and append the data into the body buffer when consume the socket data

bungle commented 6 years ago

This adresses the concern mentioned here: https://github.com/openresty/lua-resty-upload/issues/41#issuecomment-367486252

But really, should this rather be optional (and off by default to not break backward compatibility)?

whuben commented 6 years ago

Could you merge the pull-request to the main branch to extend to support the Reverse-Proxy mode?