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

AJAX respects Content-Type #331

Closed
ollym opened this issue Nov 22, 2011 · 0 comments
Closed

AJAX respects Content-Type #331

ollym opened this issue Nov 22, 2011 · 0 comments

Comments

@ollym
Copy link

ollym commented Nov 22, 2011

If an AJAX call is made to a remote server with no dataType given, and the server responds with a 'application/json' response it should return the parsed json object, not the response text.

Same goes for script and xml. Like how JQuery does it. I'll work on a patch now.

@ollym ollym closed this as completed Nov 22, 2011
mikekelly pushed a commit to mikekelly/zepto that referenced this issue Apr 7, 2012
So if dataType is not set, and the response type is "application/json",
the response text will now get parsed as JSON.

Fixes madrobby#331
lopper pushed a commit to buddydvd/zepto that referenced this issue Apr 24, 2013
So if dataType is not set, and the response type is "application/json",
the response text will now get parsed as JSON.

Fixes madrobby#331
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

Successfully merging a pull request may close this issue.

1 participant