revert stripping content length header

This commit is contained in:
Jonas Leder 2026-05-01 15:40:12 +02:00
commit 242eedce6a

View file

@ -15,6 +15,10 @@
{$CADDY_EXTRA_CONFIG}
:8080 {
log {
output stdout
}
root * /var/www/html
header {
@ -82,13 +86,6 @@
@remote path /remote /remote/*
redir @remote /remote.php{uri} 301
# PHP-declared Content-Length for binary image responses (e.g. previews) can
# exceed what FrankenPHP's Go writer expects after request finalization, causing
# "wrote more than declared Content-Length" warnings. Stripping it here lets Go
# use chunked Transfer-Encoding for those responses instead.
@php_images path_regexp preview
header @php_images -Content-Length
php_server {
resolve_root_symlink
}