gamevault-backend icon indicating copy to clipboard operation
gamevault-backend copied to clipboard

Cloudflare Proxy Content-Length Header Issue GameVault

Open Alfagun74 opened this issue 8 months ago • 2 comments

Description: When proxying a subdomain through Cloudflare, I get a content length error with the TrueCharts GameVault application on TrueNAS Scale. This issue occurs because Cloudflare strips away the Content-Length header, which is needed by GameVault for download progress.

Details:

  • Problem: Content-Length header stripped by Cloudflare causes errors in GameVault.
  • Proposed Solution:
    • Implement a fallback Content-Length header that Cloudflare does not strip.

TODO:

  • [x] Implement header "X-Download-Size" in Download responses.
  • [ ] Client using "X-Download-Size" if "Content-Length" is not given.

Alfagun74 avatar Jun 14 '24 12:06 Alfagun74