| ... | @@ -597,7 +597,7 @@ pub const Request = struct { | ... | @@ -597,7 +597,7 @@ pub const Request = struct { |
| 597 | | 597 | |
| 598 | req.transfer_encoding = .{ .content_length = content_length }; | 598 | req.transfer_encoding = .{ .content_length = content_length }; |
| 599 | } else if (has_transfer_encoding) { | 599 | } else if (has_transfer_encoding) { |
| 600 | const transfer_encoding = req.headers.getFirstValue("content-length").?; | 600 | const transfer_encoding = req.headers.getFirstValue("transfer-encoding").?; |
| 601 | if (std.mem.eql(u8, transfer_encoding, "chunked")) { | 601 | if (std.mem.eql(u8, transfer_encoding, "chunked")) { |
| 602 | req.transfer_encoding = .chunked; | 602 | req.transfer_encoding = .chunked; |
| 603 | } else { | 603 | } else { |