mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
fix: check for non protocol defined urls in provider requests
This commit is contained in:
parent
a22c897013
commit
5af90f4fe5
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ module.exports = class RequestClient {
|
|||
}
|
||||
|
||||
_getUrl (url) {
|
||||
if (/^https?:/.test(url)) {
|
||||
if (/^(https?:|)\/\//.test(url)) {
|
||||
return url
|
||||
}
|
||||
return `${this.hostname}/${url}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue