Skip to content

Commit

Permalink
Merge pull request #47619 from nextcloud/backport/47598/stable30
Browse files Browse the repository at this point in the history
[stable30] fix: re-enable content-length header via htaccess
  • Loading branch information
AndyScherzinger authored Aug 30, 2024
2 parents 88b04ba + 391ab80 commit a740630
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,13 @@
SetEnvIf Transfer-Encoding "chunked" proxy-sendcl=1
</IfModule>

# Apache disabled the sending of the server-side content-length header
# in their 2.4.59 patch updated which breaks some use-cases in Nextcloud.
# Setting ap_trust_cgilike_cl allows to bring back the usual behaviour.
# See https://bz.apache.org/bugzilla/show_bug.cgi?id=68973
<IfModule mod_env.c>
SetEnv ap_trust_cgilike_cl
</IfModule>

AddDefaultCharset utf-8
Options -Indexes

0 comments on commit a740630

Please sign in to comment.