daurnimator / lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
https://daurnimator.github.io/lua-http/
MIT License
778 stars 80 forks source link

Bump 100-expect length limit #193

Open daurnimator opened 2 years ago

daurnimator commented 2 years ago

https://daniel.haxx.se/blog/2020/02/27/expect-tweaks-in-curl/

Starting in curl 7.69.0 (due to ship on March 4, 2020) we catch up a little with the world around us and now libcurl will only automatically set the Expect: header if the amount of data to send in the body is larger than 1 megabyte. Yes, we raise the limit by 1024 times.

https://github.com/daurnimator/lua-http/blob/169c1a7586d39be1bf0d98b69934e8e8b08a87cd/http/request.lua#L342

sudojarvis commented 2 years ago

I would like work this issue. Could you please give some head start.

daurnimator commented 2 years ago

I think it is likely just changing the constant in the line I linked + writing a test case