Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Handle application/json & text/json #2
Conversation
|
Any concrete examples of the wrong mime type being served? |
|
Flickr API ⚡ curl -I http://api.flickr.com/services/rest/\?method\=flickr.photos.search\&api_key\=f29bdbe227712a27472cae9259cf995b\&user_id\=36821533%40N00\&format\=json\&nojsoncallback\=1 Google Social API ⚡ curl -I http://socialgraph.apis.google.com/lookup\?q\=germanforblack.com Google Search API ⚡ curl -I http://ajax.googleapis.com:80/ajax/services/search/web\?q\=pizza |
mislav
closed this
in bddd8f9
Jun 12, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
benschwarz commentedJun 10, 2011
Google, Flickr and Yahoo seem to LOVE sending
text/javascriptrather than correctly setting the mime-type… I've commonly seentext/plain, which is even worse—but we can't deal with any situation.Being that this library is a "it should just work when I make a request" affair, I feel that this patch is aligned to your thinking.
What do you think?