Open fredrikekre opened 2 months ago
Ok, so you're saying the issue is that in the 2nd case, both the redirect body and the redirected body are both written to the response_stream? Yeah, I agree we don't want that behavior.
I've put up https://github.com/JuliaWeb/HTTP.jl/pull/1168 for now to see how CI looks; not sure if it may unintentionally break something else.
Yea sorry if the description wasn't so clear. Basically, only the last body should be written.
HTTP.jl do not ignore the response body in redirects as discovered here: https://discourse.julialang.org/t/unexpected-end-of-data-when-updating-registries-with-localpackageserver/112782. The is introduced in HTTP.jl 1.6 (1.0 - 1.5 is OK) so the bug is in this range: https://github.com/JuliaWeb/HTTP.jl/compare/v1.5.5...v1.6.3 which includes a number of patches related to redirects.
Sample server:
HTTP.jl:
curl: