You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PrettyJsonRequest class used for the MongoDB Query handler is problematic.
In Firefox, the default setting for XHR's (Ajax requests) is to have the "Accept" header with value equal to "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8". This triggers the Tornado handler response to be written in the pretty html.
Google Chrome sets the "Accept" header to "/" by default. Ajax requests sent from Chrome and Safari do not trigger the PrettyJson write function.
The PrettyJsonRequest class used for the MongoDB Query handler is problematic.
In Firefox, the default setting for XHR's (Ajax requests) is to have the "Accept" header with value equal to "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8". This triggers the Tornado handler response to be written in the pretty html.
Google Chrome sets the "Accept" header to "/" by default. Ajax requests sent from Chrome and Safari do not trigger the PrettyJson write function.
Recreate bug for Firefox:
The response will either be in HTML.
Doing the same in Chrome will result in a JSON response.
The text was updated successfully, but these errors were encountered: