angular/angular.js — pull request #2056 by gonzaloruizdevilla (2013-02-22 18:08:29+00:00)
Title: fix(httpBackend): use of reponseText is redundant and buggy

fixes #1922
http://www.w3.org/TR/XMLHttpRequest/#dom-xmlhttprequest-responsetext
in some cases `responseText` may throw an error, but if it correctly returns a value so does `response`, which will also correctly handle other kind of response types