nahi / httpclient

'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby.
https://github.com/nahi/httpclient
701 stars 290 forks source link

Cookies are added as multiple headers, which is invalid #449

Open nate-at-gusto opened 2 years ago

nate-at-gusto commented 2 years ago

When making requests, HTTPClient adds cookies from the cookie manager as multiple cookie headers.

This is invalid according to RFC 6265.

When the user agent generates an HTTP request, the user agent MUST NOT attach more than one Cookie header field.

Instead, HTTPClient should append cookie values, separated by a semicolon.