Allow the disabling of automatic response decoding.

The following will disable their respective decoders:

  $curl->setDefaultDecoder(false);
  $curl->setJsonDecoder(false);
  $curl->setXmlDecoder(false);
This commit is contained in:
Zach Borboa
2017-04-29 02:54:35 -07:00
parent 5706ad7723
commit efbcc080bb
6 changed files with 209 additions and 50 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ if ($test === 'http_basic_auth') {
readfile($unsafe_file_path);
exit;
} elseif ($test === 'download_file_size') {
$bytes = $_GET['bytes'];
$bytes = isset($_GET['bytes']) ? $_GET['bytes'] : 1234;
$str = str_repeat('.', $bytes);
header('Content-Type: application/octet-stream');
header('Content-Length: ' . strlen($str));