Skip to content
Browse files

Merge pull request #73 from zzen/patch-1

Fixed URL port type casting issue
  • Loading branch information...
2 parents ab1a709 + 11095dd commit 641d08b96a0b32b7b5980efad4d0ba3cb1c40a4f @aheckmann aheckmann committed Jan 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/browser.js
View
2 lib/browser.js
@@ -128,7 +128,7 @@ Browser.prototype.context = function(selector, fn){
Browser.prototype.hostBrowser = function(uri) {
var otherHostname = uri.hostname
- , port = uri.port || (uri.protocol === 'https:' ? 443 : (this.port || 80))
+ , port = parseInt(uri.port,10) || (uri.protocol === 'https:' ? 443 : (this.port || 80))
, browsers = Browser.browsers
, otherBrowser;
if (!browsers) {

0 comments on commit 641d08b

Please sign in to comment.
Something went wrong with that request. Please try again.