diff --git a/lib/module.js b/lib/module.js index 96a6ea4..e1f548b 100755 --- a/lib/module.js +++ b/lib/module.js @@ -115,7 +115,7 @@ function httpModule (_moduleOptions) { } // Remove port 80 when http - if (options.baseURL.includes('http://')) { + if (/^http:\/\/.*:80(\/|$)/.test(options.baseURL)) { options.baseURL = options.baseURL.replace(':80', '') }