curl errors after too many redirects #11871
I did this
outputs the following (shortened):
On a personal project with bigger response headers it exited more quickly (after less redirects). So I'm guessing that the size counter doesn't reset after a redirect.
I expected the following
could not reproduce on
The text was updated successfully, but these errors were encountered:
Not the counter that accumulates all headers over all redirects. Yes: this means that if you allow following unbounded redirects in never-ending loops, curl can run out of memory. Fixes #11871 Reported-by: Joshix-1 on github
Why does it need all the headers?
If it needs them, then that's fine with me, I just think it would need an error message mentioning that. (or an option to not keep all the headers in memory, if that isn't too much work for such a pointless thing [following redirects forever])