aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/http.js
diff options
context:
space:
mode:
authorVojta Jina2012-08-04 12:11:00 -0700
committerIgor Minar2012-08-10 16:17:59 -0700
commite0a54f6b206dc2b6595f2bc3a17c5932e7477545 (patch)
tree4db991fbffe6258f52e59a47039f0aea8fab3341 /src/ng/http.js
parent9767f7bdd3e1ce6f65bdea992d67369ead13d813 (diff)
downloadangular.js-e0a54f6b206dc2b6595f2bc3a17c5932e7477545.tar.bz2
feat($http): support reponseType
Closes #1013
Diffstat (limited to 'src/ng/http.js')
-rw-r--r--src/ng/http.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ng/http.js b/src/ng/http.js
index deeb6cbb..ef55f878 100644
--- a/src/ng/http.js
+++ b/src/ng/http.js
@@ -381,6 +381,8 @@ function $HttpProvider() {
* - **withCredentials** - `{boolean}` - whether to to set the `withCredentials` flag on the
* XHR object. See {@link https://developer.mozilla.org/en/http_access_control#section_5
* requests with credentials} for more information.
+ * - **responseType** - `{string}` - see {@link
+ * https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType requestType}.
*
* @returns {HttpPromise} Returns a {@link ng.$q promise} object with the
* standard `then` method and two http specific methods: `success` and `error`. The `then`
@@ -697,7 +699,7 @@ function $HttpProvider() {
// if we won't have the response in cache, send the request to the backend
if (!cachedResp) {
$httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,
- config.withCredentials);
+ config.withCredentials, config.responseType);
}
return promise;