Skip to content
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

Failing to parse set-cookie headers when run from Zotero #62

Open
diegodlh opened this issue Mar 2, 2021 · 0 comments
Open

Failing to parse set-cookie headers when run from Zotero #62

diegodlh opened this issue Mar 2, 2021 · 0 comments

Comments

@diegodlh
Copy link
Contributor

diegodlh commented Mar 2, 2021

  • wikibase-edit version: 4.11.8
  • Environment: browser version

I'm developing a plugin for Zotero, which runs on Firefox runtime environment.

Wikidata is returning multiple set-cookie headers, and cross-fetch is failing to parse them because of the way Firefox's XMLHttpRequest.prototype.getAllResponseHeaders() is concatenating them.

I have posted JakeChampion/fetch#928 (cross-fetch depends on github/fetch), but I thought of posting an issue here as well, to keep track of it.

For the moment, applying the patch attached to cross-fetch fixes the issue (added .txt file extension at the end so Github would let me attach it).
cross-fetch+3.0.6 .patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant