Welcome! Log In Create A New Profile

Advanced

Re: nginx/1.26.1 as a reverse proxy strips the Content-Length field from response, no matter what I do

Tobias Damisch via nginx
August 11, 2024 01:56PM
I am awfully sorry for spamming this list.

I just found out nextcloud starts sending the file several times,
sometimes containing "Content-Length" and sometimes not. The one time it
actually serves the full download, this is the header:

------------------------------------------------------------------------
HTTP/1.1 200 OK^M
Content-Disposition: attachment;
filename*=UTF-8''debian-12.6.0-amd64-netinst.iso;
filename="debian-12.6.0-amd64-netinst.iso"^M
Content-Security-Policy: default-src 'none';^M
Content-Type: application/octet-stream^M
Date: Thu, 08 Aug 2024 22:31:08 GMT^M
Etag: "<censored>"^M
Last-Modified: Sat, 20 Jul 2024 11:07:08 GMT^M
Oc-Etag: "<censored>"^M
Referrer-Policy: no-referrer^M
Strict-Transport-Security: max-age=31536000;^M
X-Accel-Buffering: no^M
X-Content-Type-Options: nosniff^M
X-Debug-Token: OsiAGB1U6or2N1uy10GN^M
X-Frame-Options: SAMEORIGIN^M
X-Permitted-Cross-Domain-Policies: none^M
X-Request-Id: <censored>^M
X-Robots-Tag: noindex, nofollow^M
X-Xss-Protection: 1; mode=block^M
Connection: close^M
Transfer-Encoding: chunked^M
-------------------------------------------------------------------------

So I am back to the problem being in nextcloud aio /and not nginx/.

As far as I can see nginx serves Content-Length correctly /if it gets it
served itself/ *sigh*

Sorry again!

Tobias


Am 11.08.24 um 18:14 schrieb Tobias Damisch via nginx:
> Hi everyone, first-time poster here.
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx/1.26.1 as a reverse proxy strips the Content-Length field from response, no matter what I do

Tobias Damisch via nginx August 11, 2024 12:16PM

Re: nginx/1.26.1 as a reverse proxy strips the Content-Length field from response, no matter what I do

Tobias Damisch via nginx August 11, 2024 01:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready