Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-38268 files: Must be explicit about switching cURL request method…

… from HEAD to GET.
  • Loading branch information...
commit d567c29dc96f434c66038930ea0605e714085013 1 parent 215c189
Justin Filip jfilip authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  lib/filelib.php
3  lib/filelib.php
@@ -1229,7 +1229,8 @@ function download_file_content($url, $headers=null, $postdata=null, $fullrespons
1229 1229 //reinstate affected curl options
1230 1230 curl_setopt_array ($ch, array(
1231 1231 CURLOPT_RETURNTRANSFER => true,
1232   - CURLOPT_NOBODY => false)
  1232 + CURLOPT_NOBODY => false,
  1233 + CURLOPT_HTTPGET => true)
1233 1234 );
1234 1235 }
1235 1236

0 comments on commit d567c29

Please sign in to comment.
Something went wrong with that request. Please try again.