fix: check for non protocol defined urls in provider requests

This commit is contained in:
Ifedapo Olarewaju 2018-06-02 16:23:12 +01:00
parent a22c897013
commit 5af90f4fe5

View file

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