Procházet zdrojové kódy

fix: check for non protocol defined urls in provider requests

Ifedapo Olarewaju před 6 roky
rodič
revize
5af90f4fe5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/server/RequestClient.js

+ 1 - 1
src/server/RequestClient.js

@@ -64,7 +64,7 @@ module.exports = class RequestClient {
   }
 
   _getUrl (url) {
-    if (/^https?:/.test(url)) {
+    if (/^(https?:|)\/\//.test(url)) {
       return url
     }
     return `${this.hostname}/${url}`