From a07e060502c2665d7707fa606e3250edcf46ee37 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 16 Apr 2026 04:22:28 +0000 Subject: [PATCH] fix: remove content-length assertion for large file chunked downloads Swoole's write() uses Transfer-Encoding: chunked which strips the Content-Length header. The assertion was added by this PR but is incorrect for the chunked download path used by large files. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/e2e/Services/Storage/StorageBase.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/e2e/Services/Storage/StorageBase.php b/tests/e2e/Services/Storage/StorageBase.php index de0d54258e..e706d552ff 100644 --- a/tests/e2e/Services/Storage/StorageBase.php +++ b/tests/e2e/Services/Storage/StorageBase.php @@ -867,7 +867,6 @@ trait StorageBase $this->assertEquals('attachment; filename="large-file.mp4"', $file7['headers']['content-disposition']); $this->assertEquals('video/mp4', $file7['headers']['content-type']); $this->assertEquals('bytes', $file7['headers']['accept-ranges']); - $this->assertNotEmpty($file7['headers']['content-length']); $this->assertNotEmpty($fileData); $this->assertEquals(md5_file(realpath(__DIR__ . '/../../../resources/disk-a/large-file.mp4')), md5($fileData)); // validate the file is downloaded correctly