Skip to content

Commit

Permalink
Merge pull request #780 from esaounkine/master
Browse files Browse the repository at this point in the history
improved 'https' pattern matching for local paths with name starting with 'http'
  • Loading branch information
jsdevel committed Jan 9, 2016
2 parents 362c308 + 9474002 commit 0e0e169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wsdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ WSDL.prototype._processNextInclude = function(includes, callback) {
return callback();

var includePath;
if (!/^https?/.test(self.uri) && !/^https?/.test(include.location)) {
if (!/^https?:/.test(self.uri) && !/^https?:/.test(include.location)) {
includePath = path.resolve(path.dirname(self.uri), include.location);
} else {
includePath = url.resolve(self.uri, include.location);
Expand Down Expand Up @@ -2034,7 +2034,7 @@ function open_wsdl(uri, options, callback) {
var request_options = options.wsdl_options;

var wsdl;
if (!/^https?/.test(uri)) {
if (!/^https?:/.test(uri)) {
debug('Reading file: %s', uri);
fs.readFile(uri, 'utf8', function(err, definition) {
if (err) {
Expand Down

0 comments on commit 0e0e169

Please sign in to comment.