angular/angular.js — pull request #8632 by standup75 (2014-08-15 22:15:04+00:00)
Title: Transform ajax response to json only if no responseType specified or if this responseType is specifically json

I realize that even if I send a request with a responseType="text", angular would transform response into an object if it looks like json.

I think angular should do that only the responseType is absent or if it is === "json"

That's what this pull request is doing