h2non/gentleman

How to disable redirect

Opened this issue · 0 comments

I just want to get the redirected information but not follow to the location.
I tried cli.Use(redirect.Limit(-1)) and cli.Use(redirect.Limit(0)), all sucks.
Is there anyway to disable redirect totally?