aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2023-04-22 16:34:33 -0700
committerRyan Liptak <squeek502@hotmail.com>2023-04-23 15:33:23 -0700
commit0488c3cb52a75ffa4fa73b385d3d6e79cc6da774 (patch)
tree66f847c3dd9f89b5af9b518b2269feecfdbe47c4 /lib/std/array_hash_map.zig
parent1acb3162b7e24e6badad4aff37dbeac09f47f165 (diff)
downloadzig-0488c3cb52a75ffa4fa73b385d3d6e79cc6da774.tar.gz
zig-0488c3cb52a75ffa4fa73b385d3d6e79cc6da774.zip
std.http: Always initialize `response.headers` in Client.request
Before this change, if a request errored before getting its `response.headers` initialized, then it would attempt to `deinit` `response.headers` which would still be `undefined`. Since all locations that set `response.headers` use the same code, it can just be done upfront in `request` instead. Closes #15380
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions