Browse Source

fix: check for non protocol defined urls in provider requests

Ifedapo Olarewaju 6 years ago
parent
commit
5af90f4fe5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/RequestClient.js

+ 1 - 1
src/server/RequestClient.js

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