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 19075a2 commit 3000c6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/filelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}

Expand Down

0 comments on commit 3000c6b

Please sign in to comment.