Skip to content

Commit

Permalink
MDL-38268 files: Must be explicit about switching cURL request method…
Browse files Browse the repository at this point in the history
… from HEAD to GET.
  • Loading branch information
jfilip committed Mar 5, 2013
1 parent cce0d9a commit 2e667c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/filelib.php
Expand Up @@ -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)
);
}

Expand Down

0 comments on commit 2e667c7

Please sign in to comment.