You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License)
@@ -46,6 +46,12 @@ function buildURL (url, queryParams) {
46
46
functionparseURL(url){
47
47
if(typeofurl==='string'){
48
48
url=newURL(url)
49
+
50
+
if(!/^https?:/.test(url.origin||url.protocol)){
51
+
thrownewInvalidArgumentError('invalid protocol')
52
+
}
53
+
54
+
returnurl
49
55
}
50
56
51
57
if(!url||typeofurl!=='object'){
@@ -375,23 +381,34 @@ function ReadableStreamFrom (iterable) {
375
381
376
382
// The chunk should be a FormData instance and contains
0 commit comments