Skip to content

Commit

Permalink
Merge pull request #75 from alexdebril/issue/73
Browse files Browse the repository at this point in the history
Trim XML stream (issue #73)
  • Loading branch information
alexdebril authored May 3, 2017
2 parents 30c3eca + 89e07d7 commit a25113e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FeedIo/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function addParser(Parser $parser)

/**
* adds a filter to every parsers
*
*
* @param \FeedIo\FilterInterface $filter
* @return $this
*/
Expand All @@ -76,7 +76,7 @@ public function addFilter(FilterInterface $filter)
foreach ($this->parsers as $parser) {
$parser->addFilter($filter);
}

return $this;
}

Expand Down Expand Up @@ -135,7 +135,7 @@ public function read($url, FeedInterface $feed, \DateTime $modifiedSince = null)
$response = $this->client->getResponse($url, $modifiedSince);

$this->logger->debug("response ok, now turning it into a DomDocument");
$document = $this->loadDocument($response->getBody());
$document = $this->loadDocument(trim($response->getBody()));
$this->parseDocument($document, $feed);

$this->logger->info("{$url} successfully parsed");
Expand Down

0 comments on commit a25113e

Please sign in to comment.