FollowRedirects was failing with a ReadTimeout for me, the reason turned out to be because the request I was doing was a multipart post which naturally has a form multipart Content-Type and a long Content-Length for the post body.
When this request is convert to a GET as per standards_compliance: false these headers should probably be disregarded by default, the POST body is not coming along for the ride so these are definitely going to be wrong.
To achieve this myself I had to use the callback option:
Thanks @stevelacey, that makes sense and it would make the middleware smarter.
I won't be able to work on this right now, but hopefully there will be takers ❤️ .
FollowRedirects was failing with a
ReadTimeout
for me, the reason turned out to be because the request I was doing was a multipart post which naturally has a form multipartContent-Type
and a longContent-Length
for the post body.When this request is convert to a GET as per
standards_compliance: false
these headers should probably be disregarded by default, the POST body is not coming along for the ride so these are definitely going to be wrong.To achieve this myself I had to use the
callback
option: