From d567c29dc96f434c66038930ea0605e714085013 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 77cf1045793..710e10889fb 100644 --- a/lib/filelib.php +++ b/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) ); }