Skip to content

Commit

Permalink
fixed #88
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rogg authored and Thomas Rogg committed Jan 27, 2020
1 parent 33f0036 commit 94f8e69
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib_js/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,15 @@ function URL(url, urlIfBase) {
url = urlResolve(urlIfBase, url);
this.parse(url, false, true);

// TODO: resort
// required by ws/lib/websocket.js
if(!this.search)
this.search = '';
if(!this.username)
this.username = '';
if(!this.password)
this.password = '';
if(!this.hash)
this.hash = '';
}
URL.prototype = Object.create(Url.prototype);

Expand Down

0 comments on commit 94f8e69

Please sign in to comment.