Skip to content

Commit

Permalink
Merge pull request dg#3 from flenczewski/patch-1
Browse files Browse the repository at this point in the history
Update feed.class.php
  • Loading branch information
dg committed Jul 21, 2013
2 parents f3a0ee2 + eb4a3aa commit 70af602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feed.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ private static function httpRequest($url, $user, $pass)
curl_setopt($curl, CURLOPT_HEADER, FALSE);
curl_setopt($curl, CURLOPT_TIMEOUT, 20);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); // no echo, just return result
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); // sometime is useful :)
$result = curl_exec($curl);
$ok = curl_errno($curl) === 0 && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200;
}
Expand Down Expand Up @@ -219,4 +220,4 @@ private static function adjustNamespaces($el)
*/
class FeedException extends Exception
{
}
}

0 comments on commit 70af602

Please sign in to comment.