Skip to content

Commit 1f6b529

Browse files
shenanigansJames Halliday
authored and
James Halliday
committed
add support for responseType parameter
1 parent 5d3407e commit 1f6b529

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/request.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ var Request = module.exports = function (xhr, params) {
2222
try { xhr.withCredentials = params.withCredentials }
2323
catch (e) {}
2424

25+
if (params.responseType) try { xhr.responseType = params.responseType }
26+
catch (e) {}
27+
2528
xhr.open(
2629
params.method || 'GET',
2730
self.uri,

0 commit comments

Comments
 (0)