-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpHeaders Set-Cookie is single string #33
Comments
I think that is done in the following lines (specifically 236): node-warc/lib/warcRecord/warcContentParsers.js Lines 220 to 252 in be38971
Maybe you could fix it and do a PR for it to get fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where there are multiple
Set-Cookie
headers in a server response from a WARC record the value ofhttpHeaders.Set-Cookie
is always the last one in the list. This should be returned as an array of theSet-Cookie
headers if that change doesnt break other things or there should be another method to get all of the cookies from the headers block. Another option would be to keep the line endings (\n) for the response so it is still a string but you can split it if you want.Example WARC record (minus the content block):
Response from
console.log(record.httpHeaders);
when used in therecord
callback:The text was updated successfully, but these errors were encountered: