aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/http.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/http.js')
-rw-r--r--src/ng/http.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/http.js b/src/ng/http.js
index 460618e3..9c4dafd4 100644
--- a/src/ng/http.js
+++ b/src/ng/http.js
@@ -90,7 +90,7 @@ function $HttpProvider() {
var $config = this.defaults = {
// transform incoming response data
- transformResponse: function(data) {
+ transformResponse: [function(data) {
if (isString(data)) {
// strip json vulnerability protection prefix
data = data.replace(PROTECTION_PREFIX, '');
@@ -98,12 +98,12 @@ function $HttpProvider() {
data = fromJson(data, true);
}
return data;
- },
+ }],
// transform outgoing request data
- transformRequest: function(d) {
+ transformRequest: [function(d) {
return isObject(d) && !isFile(d) ? toJson(d) : d;
- },
+ }],
// default headers
headers: {