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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user