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.
Differential D4187
Do not set the Content-Length on the download response mollekopf on Mar 23 2023, 9:00 AM. Authored by Tags None Referenced Files
Subscribers
Details Seems related to: Apparently swoole uses the chunked transfer encoding, In any case with the Content-Length header swoole crashes, without
Diff Detail
Event TimelineComment Actions 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. |