Page MenuHomePhorge

Do not set the Content-Length on the download response
ClosedPublic

Authored by mollekopf on Mar 23 2023, 9:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 15, 11:28 AM
Unknown Object (File)
Sat, Sep 28, 1:44 PM
Unknown Object (File)
Sep 16 2024, 2:11 PM
Unknown Object (File)
Sep 13 2024, 8:40 AM
Unknown Object (File)
Sep 13 2024, 8:38 AM
Unknown Object (File)
Sep 13 2024, 8:38 AM
Unknown Object (File)
Sep 13 2024, 8:38 AM
Unknown Object (File)
Sep 11 2024, 1:08 AM
Subscribers

Details

Summary

Seems related to:

Apparently swoole uses the chunked transfer encoding,
and according to the rfc we're not supposed to set Content-Length in
that case.

In any case with the Content-Length header swoole crashes, without
everything seems to work.

Diff Detail

Repository
rK kolab
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42086
Build 16934: arc lint + arc unit

Event Timeline

mollekopf created this revision.
mollekopf added a reviewer: Restricted Project.Mar 23 2023, 9:30 AM
machniak subscribed.

I was thinking that we could do a separate code path for small files that has only one chunk and send Content-Length for them, but it could be done later and I didn't really tested that.

This revision is now accepted and ready to land.Mar 23 2023, 11:51 AM
This revision was automatically updated to reflect the committed changes.