tomas / needle

Nimble, streamable HTTP client for Node.js. With proxy, iconv, cookie, deflate & multipart support.
https://www.npmjs.com/package/needle
MIT License
1.63k stars 236 forks source link

"follow_set_cookies" not forwarding all initial cookies when following redirects #350

Open leroychan opened 3 years ago

leroychan commented 3 years ago

Version: v2.6.0 (Using Needle with Promise Style)

Issue: "follow_set_cookies" not forwarding all initial cookies when following redirects

Scenario:

  1. Send POST Request with 5 Cookies (cookie1-cookie5) to Server
  2. Server returns 302 response with additional Set-Cookie header (e.g. "cookie6")
  3. After following redirect, the resultant redirected page only receives 2 cookies instead of 6 cookies