Skip to content

Commit 54805fc

Browse files
committed
is binary check should be done for all header
not only the first ones. Also added iso mime type #95
1 parent ef6c3cb commit 54805fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RequestResolvers/Curl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Curl implements RequestResolverInterface
2626

2727
public static $binaryContentTypes = [
2828
'#image/.*#',
29-
'#application/(pdf|x-download|zip|pdf|msword|vnd\\.ms|postscript|octet-stream|ogg)#',
30-
'#application/x-zip.*#',
29+
'#application/(pdf|x-download|zip|pdf|msword|vnd\\.ms|postscript|octet-stream|ogg|x-iso9660-image)#',
30+
'#application/x-zip.*#'
3131
];
3232

3333
/**
@@ -157,7 +157,7 @@ protected function resolve()
157157

158158
protected function headerCallback($connection, $string)
159159
{
160-
if (($this->isBinary === null) && strpos($string, ':')) {
160+
if (strpos($string, ':')) {
161161
list($name, $value) = array_map('trim', explode(':', $string, 2));
162162

163163
if (strtolower($name) === 'content-type') {

0 commit comments

Comments
 (0)