Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #1165 - 00dani:xcloud-firefox-dev-edition, r=hobinjk
Explicitly set contentType in Firefox's Request The default value is `"application/x-www-form-urlencoded"`, but we usually want JSON. In some versions of Firefox, passing `{headers: {"Content-Type": "application/json"}}` to the Request constructor works. However in other versions, such as the latest Developer Edition 51.0a2, the actual header sent erroneously becomes `Content-Type: application/x-www-form-urlencoded, application/json`. This breaks XCloud and might break other services as well. This patch simply ensures that if we ask for `application/json`, we get `application/json`.
- Loading branch information