Skip to content
Browse files

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

… from HEAD to GET.
  • Loading branch information...
1 parent cce0d9a commit 2e667c740587acdeaef7d54773ffea880582a266 @jfilip jfilip committed Mar 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/filelib.php
View
3 lib/filelib.php
@@ -1290,7 +1290,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 2e667c7

Please sign in to comment.
Something went wrong with that request. Please try again.