Closed jrozner closed 7 years ago
Does this need to be configurable? Can't we just make an arbitrary decision, say 10 and leave it at that?
I don't want to end up rewriting all of curl.
On 25 Sep. 2016, at 17:39, Joe Rozner notifications@github.com wrote:
Introduce the -max-directs flag from curl to limit the maximum number for 30x redirects to follow and set a sane default. cURL sets this to 50.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Sure, but the only additional change to support arbitrary numbers would be adding a flag to change the default number. Also, with the proposed features (not counting all the non HTTP(S) features of cURL that nobody uses) it's not going to be that far off from a functional re-implementation of cURL anyway
Introduce the -max-directs flag from curl to limit the maximum number for 30x redirects to follow and set a sane default. cURL sets this to 50.