Skip to content

Commit

Permalink
Added blob to the list of protocols supported by the browser; (#4678)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
DigitalBrainJS and jasonsaayman committed May 9, 2022
1 parent 2f50c82 commit 356b166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/xhr.js
Expand Up @@ -212,7 +212,7 @@ module.exports = function xhrAdapter(config) {

var protocol = parseProtocol(fullPath);

if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {
if (protocol && [ 'http', 'https', 'file', 'blob' ].indexOf(protocol) === -1) {
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
return;
}
Expand Down

0 comments on commit 356b166

Please sign in to comment.