Browse files

more ocd

  • Loading branch information...
1 parent ede8180 commit c22e3ff94c0620a2cff61090a583005518d81eef @tj tj committed Jul 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/browser.js
View
2 lib/browser.js
@@ -181,7 +181,7 @@ Browser.prototype.request = function(method, path, options, fn, saveHistory){
}
var uri, otherHostname, otherBrowser;
- if (path.substring(0, 4) === 'http') {
+ if (0 == path.indexOf('http')) {
// If we have a full uri, not a uri path, then convert the full uri to a path
uri = url.parse(path);
path = uri.pathname + (uri.search || '');

0 comments on commit c22e3ff

Please sign in to comment.