Skip to content

Commit

Permalink
Update Drawing.php
Browse files Browse the repository at this point in the history
Put Connection and Accept under header
  • Loading branch information
oleibman authored Dec 12, 2024
1 parent fb077f8 commit 83bd1f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PhpSpreadsheet/Worksheet/Drawing.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ public function setPath(string $path, bool $verifyFile = true, ?ZipArchive $zip
'ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT],
'http' => [
'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',
'Connection: keep-alive',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'header' => [
'Connection: keep-alive',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
],
],
]);
}
Expand Down

0 comments on commit 83bd1f2

Please sign in to comment.