Permalink
Browse files

Parse responses based on the type of the response, not ajaxDataType

- prevents bug where WS messages wouldn't be parsed with JSONP enabled

#2768
  • Loading branch information...
1 parent bf0b5b3 commit 16d6c2a51c6b49214e1e4d4e719ff014455a5f38 @halter73 halter73 committed Dec 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Microsoft.AspNet.SignalR.Client.JS/jquery.signalR.core.js
@@ -344,7 +344,7 @@
if (!response) {
return response;
- } else if (that.ajaxDataType === "text") {
+ } else if (typeof response === "string") {
return that.json.parse(response);
} else {
return response;

0 comments on commit 16d6c2a

Please sign in to comment.