azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.65k stars 130 forks source link

[BUG]: 'Content-Length' cut in header response. #313

Closed luigirossidev closed 2 months ago

luigirossidev commented 2 months ago

What happened?

I have a docker-laravel-php-apache container with this code: $response->headers->set('Content-Length', $fileSize); but when i call my route, download is fine, but in header response i can't get Content-Length name-value. tried without cosmos and it works.

What should have happened?

Forced header 'Content-Length' must be visible in header response: some tools need it (for example, ESP32 OTA Update)

How to reproduce the bug?

  1. Custom Docker PHP Image with Apache nad Laravel project
  2. Route with a response()->download(...) and ->headers->set('Content-Length', $fileSize_value);

Relevant log output

No response

Other details

No response

System details

luigirossidev commented 2 months ago

my mistake, apache new version rule. issue closed.