mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
std.http.Server: use correct header for Transfer-Encoding
This commit is contained in:
parent
7ab306d1f7
commit
b835fd90ce
@ -441,7 +441,7 @@ pub const Response = struct {
|
||||
|
||||
res.transfer_encoding = .{ .content_length = content_length };
|
||||
} else if (has_transfer_encoding) {
|
||||
const transfer_encoding = res.headers.getFirstValue("content-length").?;
|
||||
const transfer_encoding = res.headers.getFirstValue("transfer-encoding").?;
|
||||
if (std.mem.eql(u8, transfer_encoding, "chunked")) {
|
||||
res.transfer_encoding = .chunked;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user