From 3000c6bde7182505c8883a4dfff534de3acb443f 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 4713d82145b..69c9698ba1c 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -1277,7 +1277,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) ); }