mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
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
This commit is contained in:
parent
1acb3162b7
commit
0488c3cb52
1 changed files with 2 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue