We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b4175 commit 7b8e6b8Copy full SHA for 7b8e6b8
src/execute.ts
@@ -137,7 +137,13 @@ export default function execute<T>(request: Request): Promise<Response<T>> {
137
// Initializes the request
138
xhr.open(request.method, request.url)
139
// Copying the response type from the Request we received
140
- xhr.responseType = request.responseType
+
141
+ try {
142
+ xhr.responseType = request.responseType
143
+ } catch (err) {
144
+ // setting not supported
145
+ xhr.responseType = ''
146
+ }
147
148
// Adapting the main XMLHttpRequest according to the passed Request
149
if (request.responseType === 'json') {
0 commit comments