These are chat archives for request/request

22nd
Nov 2016
Felipe Sabino
@felipesabino
Nov 22 2016 17:11
@bkitog Don't know either... it seems that it is indeed explicitly removing content-type and other headers on redirects different than 307 - https://github.com/request/request/blob/master/lib/redirect.js#L135 - but I honestly don't know why...
I thought 302 redirect requests should be identical to the initial one, but I couldn't find that on the HTTP specs - https://tools.ietf.org/html/rfc2616#section-10.3.3
May be it is better to wait somebody from the project to jump in and comment why this is the current behavior
bkitog
@bkitog
Nov 22 2016 19:35
@felipesabino thanks for the follow-up. They also delete the body. :( I created my own copy for now.