2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-02 16:04:10 +03:00

Added blob to the list of protocols supported by the browser; (#4678)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Dmitriy Mozgovoy
2022-05-09 20:27:18 +03:00
committed by GitHub
parent 2f50c8249b
commit 356b166182
+1 -1
View File
@@ -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;
}