Skip to content

Commit

Permalink
Autodetermine response content-length
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Feb 10, 2025
1 parent 08ea8c9 commit fadfff9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions formwork/src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function __construct(
array $headers = [],
) {
$headers += [
'Content-Length' => (string) strlen($content),
'Content-Type' => Header::make(['text/html', 'charset' => 'utf-8']),
'Content-Type' => Header::make(['text/html', 'charset' => 'utf-8']),
];
$this->headers = new ResponseHeaders($headers);
}
Expand Down

0 comments on commit fadfff9

Please sign in to comment.