tomas / needle

Nimble, streamable HTTP client for Node.js. With proxy, iconv, cookie, deflate & multipart support.

Home Page:https://www.npmjs.com/package/needle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"follow_set_cookies" not forwarding all initial cookies when following redirects

leroychan opened this issue · comments

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