Skip to content

Commit 8af3bda

Browse files
romayalonliranmauda
authored andcommitted
Fix chunked content encoding parsing check
Signed-off-by: Romy <[email protected]> (cherry picked from commit e7a8509)
1 parent 854f699 commit 8af3bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/http_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ function check_headers(req, options) {
629629

630630
const content_encoding = req.headers['content-encoding'] || '';
631631
req.chunked_content =
632-
content_encoding.split(',').includes('aws-chunked') ||
632+
content_encoding.split(',').map(encoding => encoding.trim()).includes('aws-chunked') ||
633633
content_sha256_hdr === STREAMING_PAYLOAD;
634634

635635
const req_time =

0 commit comments

Comments
 (0)