revert stripping content length header
This commit is contained in:
parent
b7f1263e8d
commit
242eedce6a
1 changed files with 4 additions and 7 deletions
11
Caddyfile
11
Caddyfile
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue