Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix typo in RequestURL class
Browse files Browse the repository at this point in the history
Closes #86
  • Loading branch information
alexlafroscia committed Apr 8, 2016
1 parent ec3d68d commit fd77f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/utils/url-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class RequestURL {
}

sameHost(other) {
return ['protocol', 'hostname', 'post'].reduce((previous, prop) => {
return ['protocol', 'hostname', 'port'].reduce((previous, prop) => {
return previous && (this[prop] === other[prop]);
}, true);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/utils/url-helpers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ test('RequestURL Class: can detect if two hosts are the same', function(assert)
assertSameHost('https://google.com', 'https://google.com');
assertSameHost('https://google.com', 'http://google.com', false);
assertSameHost('http://google.com', 'google.com', false);
assertSameHost('http://google.com:8080', 'http://google.com:8080');
assertSameHost('http://google.com:8080', 'http://google.com:8081', false);
});

0 comments on commit fd77f71

Please sign in to comment.