mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-15 00:16:55 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user