Skip to content

Commit 92292e5

Browse files
committed
Simplify Accept Header
1 parent cc86557 commit 92292e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PhpSpreadsheet/Worksheet/Drawing.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ public function setPath(string $path, bool $verifyFile = true, ?ZipArchive $zip
118118
'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
119119
'header' => [
120120
//'Connection: keep-alive', // unacceptable performance
121-
// accept header used by chrome without image/webp
122-
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
121+
'Accept: image/*;q=0.9,*/*;q=0.8',
123122
],
124123
],
125124
];

0 commit comments

Comments
 (0)