Fixed a bug where requests with the JSON-option set would not send an Accept: application/json header in the browser version.