Skip to content

Commit de8c8cc

Browse files
committed
fix Content-Length
1 parent 2f4fef6 commit de8c8cc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"preset": "laravel",
33
"rules": {
44
"declare_strict_types": true,
5-
"explicit_string_variable": true,
6-
"mb_str_functions": true
5+
"explicit_string_variable": true
76
}
87
}

src/Pdf/PdfInvoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public function download(?string $filename = null): Response
230230
return new Response($output, 200, [
231231
'Content-Type' => 'application/pdf',
232232
'Content-Disposition' => HeaderUtils::makeDisposition('attachment', $filename, Str::ascii($filename)),
233-
'Content-Length' => mb_strlen($output ?? ''),
233+
'Content-Length' => strlen($output ?? ''),
234234
]);
235235
}
236236

0 commit comments

Comments
 (0)