Headers lost on redirect #376

merged 1 commit into from Nov 23, 2012


None yet

2 participants

kapetan commented Nov 22, 2012

When piping request into another stream, which supports setHeader, the headers aren't included if a redirect occurres. It's because the self.dests in the init (linie 114 in main.js) method is reset to an empty array on every redirect. I think this also fixes issue #348.

@mikeal mikeal merged commit bf8315d into request:master Nov 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment