Permalink
Browse files

MDL-38268 files: Must be explicit about switching cURL request method…

… from HEAD to GET.
  • Loading branch information...
1 parent 215c189 commit d567c29dc96f434c66038930ea0605e714085013 @jfilip jfilip committed Mar 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/filelib.php
View
3 lib/filelib.php
@@ -1229,7 +1229,8 @@ function download_file_content($url, $headers=null, $postdata=null, $fullrespons
//reinstate affected curl options
curl_setopt_array ($ch, array(
CURLOPT_RETURNTRANSFER => true,
- CURLOPT_NOBODY => false)
+ CURLOPT_NOBODY => false,
+ CURLOPT_HTTPGET => true)
);
}

0 comments on commit d567c29

Please sign in to comment.