mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std: fix bug in http.headers where .put captures user-held variable
This commit is contained in:
parent
7a1cde7206
commit
65013d8599
@ -172,7 +172,7 @@ pub const Headers = struct {
|
||||
var dex = HeaderIndexList.init(self.allocator);
|
||||
try dex.append(n - 1);
|
||||
errdefer dex.deinit();
|
||||
_ = try self.index.put(name, dex);
|
||||
_ = try self.index.put(name_dup, dex);
|
||||
}
|
||||
self.data.appendAssumeCapacity(entry);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user