Ajax.HttpData should examine response content-type for data evaluation
|Reported by:||mnichols||Owned by:|
|Keywords:||httpData dataType dynamic||Cc:|
The current implementation requires the user to explicitly state 'script' or 'json' for jq to evaluate the responseText. Since the method is currently inspecting the response content-type property for xml handling it should also do this for /script/ and /json/ dataTypes without requiring user explicit property setting. Why? Sometimes the server might return a script and other times raw html, so this would allow the server some flexibility. I have attached a patch that follows the same semantics as xml handling.