Skip to content

Commit

Permalink
Merge branch 'master' of github.com:APE-Project/APE_Server
Browse files Browse the repository at this point in the history
  • Loading branch information
paraboul committed Feb 19, 2010
2 parents 841f782 + 6915147 commit b201dd6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/framework/Http.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ var Http = new Class({
},

parseURL: function() {
var result = this.url.match("^.*?://(.*?)((/.*)|)$");
this.host = result[1];
this.query = result[2];
var result = this.url.match("^.*?://(.*?)(:([0-9]+))?((/.*)|)$");
this.host = result[1];
this.port = result[3] || 80;
this.query = result[4];
},

set: function(key, value) {
Expand Down

0 comments on commit b201dd6

Please sign in to comment.