Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make JSON requests allow text/javascript content #148
+1
−1
Conversation
mattt
pushed a commit
that referenced
this pull request
Dec 13, 2011
|
|
4c71f35
|
mattt
merged commit 4c71f35
into AFNetworking:master
Dec 13, 2011
|
Thanks @mattt! Love the library! |
greghe
pushed a commit
to skillz/AFNetworking
that referenced
this pull request
Sep 3, 2015
|
|
1046e47
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

jakeboxer commentedDec 11, 2011
The Facebook API returns JSON with a Content-Type of
text/javascript. This makesAFJSONRequestOperationerror, since it's expectingtext/jsonorapplication/json. Seems reasonable forAFJSONRequestOperationto accepttext/javascript, since JSON is a subset of JavaScript.