Skip to content

Commit

Permalink
- Fix for normalizing relative links when using non-80 ports
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 16, 2015
1 parent 411a36c commit cc8624d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ protected function hasAlreadyCrawled(Url $url)
protected function normalizeUrl(Url $url)
{
if ($url->isRelative()) {

$url->setScheme($this->baseUrl->scheme)
->setHost($this->baseUrl->host);
->setHost($this->baseUrl->host)
->setPort($this->baseUrl->port);
}

if ($url->isProtocolIndependent()) {
Expand Down

0 comments on commit cc8624d

Please sign in to comment.