Skip to content

Commit b16c108

Browse files
committed
Fix xhr.responseType set before xhr.open
1 parent c0869e5 commit b16c108

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/request.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ var Request = module.exports = function (xhr, params) {
2121

2222
try { xhr.withCredentials = params.withCredentials }
2323
catch (e) {}
24-
25-
if (params.responseType) try { xhr.responseType = params.responseType }
26-
catch (e) {}
27-
24+
2825
xhr.open(
2926
params.method || 'GET',
3027
self.uri,
3128
true
3229
);
3330

31+
if (params.responseType) try { xhr.responseType = params.responseType }
32+
catch (e) {}
33+
3434
self._headers = {};
3535

3636
if (params.headers) {

0 commit comments

Comments
 (0)