Skip to content

Commit

Permalink
Merge branch 'wip-MDL-33749-master' of https://github.com/kwiliarty/m…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jul 3, 2012
2 parents 941d1fb + b1eeb76 commit 5439f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repository/url/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ protected function parse_file($baseurl, $relativeurl, &$list, $mainfile = false)
}
$this->processedfiles[] = $url;
$curl = new curl;
$curl->setopt(array('CURLOPT_FOLLOWLOCATION' => true, 'CURLOPT_MAXREDIRS' => 3));
$msg = $curl->head($url);
$info = $curl->get_info();
if ($info['http_code'] != 200) {
Expand Down

0 comments on commit 5439f90

Please sign in to comment.