You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it looks like with the "single shot" interface (request_uri) we don't read the trailers. I don't remember if there was a reason for this or not, but perhaps it is simply an oversight.
With the generic interface you just need to call res:read_trailers() after reading the body.
lua-resty-http/lib/resty/http.lua
Lines 937 to 950 in 2af9925
In function request_uri(), we read response body by res:read_body(), but Trailer is not be read before closing connection I think.
Correct me if I am wrong~
Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer
The text was updated successfully, but these errors were encountered: