mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Using the Headers class from the Fetch API. Before, the added test would fail: `_requestInternal()`, not finding a header named `Content-Type` (case sensitive), would set it to `application/x-www-form-urlencoded`. XMLHttpRequest, upon being given both `content-type`: `application/json`) and `Content-Type`: `application/x-www-form-urlencoded`, would helpfully merge the two, producing `content-type`: `application/json, application/x-www-form-urlencoded`. That's obviously not the correct behavior. |
||
|---|---|---|
| .. | ||
| scaffold | ||
| zotero | ||
| zotero-platform | ||