From b8cc71d476f76ff51e719fb76fb2348027c858ce Mon Sep 17 00:00:00 2001 From: Bruno Baia Date: Tue, 19 Nov 2013 00:30:36 +0100 Subject: fix($http): allow sending Blob data using $http Closes #5012 --- src/ng/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/http.js') diff --git a/src/ng/http.js b/src/ng/http.js index 0c54f5bb..c7dc64e2 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -103,7 +103,7 @@ function $HttpProvider() { // transform outgoing request data transformRequest: [function(d) { - return isObject(d) && !isFile(d) ? toJson(d) : d; + return isObject(d) && !isFile(d) && !isBlob(d) ? toJson(d) : d; }], // default headers -- cgit v1.2.3