From 2e667c740587acdeaef7d54773ffea880582a266 Mon Sep 17 00:00:00 2001 From: Justin Filip Date: Tue, 5 Mar 2013 11:22:20 -0500 Subject: [PATCH] MDL-38268 files: Must be explicit about switching cURL request method from HEAD to GET. --- lib/filelib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/filelib.php b/lib/filelib.php index 3e549904ef2..90d6c74f229 100644 --- a/lib/filelib.php +++ b/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) ); }