Skip to content
Snippets Groups Projects
Commit adb5d787 authored by Alex Barth's avatar Alex Barth
Browse files

#619838 tobiassjosten: support all encodings.

parent 5ec66a52
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva ...@@ -158,6 +158,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
curl_setopt($download, CURLOPT_HTTPHEADER, $headers); curl_setopt($download, CURLOPT_HTTPHEADER, $headers);
curl_setopt($download, CURLOPT_HEADER, TRUE); curl_setopt($download, CURLOPT_HEADER, TRUE);
curl_setopt($download, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($download, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($download, CURLOPT_ENCODING, '');
if ($accept_invalid_cert) { if ($accept_invalid_cert) {
curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment