| ... | @@ -441,7 +441,7 @@ pub const Response = struct { | ... | @@ -441,7 +441,7 @@ pub const Response = struct { |
| 441 | | 441 | |
| 442 | res.transfer_encoding = .{ .content_length = content_length }; | 442 | res.transfer_encoding = .{ .content_length = content_length }; |
| 443 | } else if (has_transfer_encoding) { | 443 | } else if (has_transfer_encoding) { |
| 444 | const transfer_encoding = res.headers.getFirstValue("content-length").?; | 444 | const transfer_encoding = res.headers.getFirstValue("transfer-encoding").?; |
| 445 | if (std.mem.eql(u8, transfer_encoding, "chunked")) { | 445 | if (std.mem.eql(u8, transfer_encoding, "chunked")) { |
| 446 | res.transfer_encoding = .chunked; | 446 | res.transfer_encoding = .chunked; |
| 447 | } else { | 447 | } else { |