aboutsummaryrefslogtreecommitdiff
path: root/src/http_client_async.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-04-14 03:58:38 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-14 03:58:38 -0700
commitf6a4516d667f7cf000fb2e3123d29079a5ced272 (patch)
tree4f108bdbd550f6bc05e5e06814c8b271e8ce8d13 /src/http_client_async.zig
parent6c69c2b36462100792bb3d1b23aba8afbee0253f (diff)
downloadbun-f6a4516d667f7cf000fb2e3123d29079a5ced272.tar.gz
bun-f6a4516d667f7cf000fb2e3123d29079a5ced272.tar.zst
bun-f6a4516d667f7cf000fb2e3123d29079a5ced272.zip
Upgrade Zig (#2656)
* Upgrade Zig * Don't add `d` files in github actions * Revert "Don't add `d` files in github actions" This reverts commit 446e2dd6743da08ec4136233fdc9179dbbf58fca. --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/http_client_async.zig')
-rw-r--r--src/http_client_async.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig
index c75883ad7..bf33e65fc 100644
--- a/src/http_client_async.zig
+++ b/src/http_client_async.zig
@@ -1083,7 +1083,8 @@ const os = std.os;
pub fn hashHeaderName(name: string) u64 {
var hasher = std.hash.Wyhash.init(0);
var remain = name;
- var buf: [hasher.buf.len]u8 = undefined;
+
+ var buf: [@sizeOf(@TypeOf(hasher.buf))]u8 = undefined;
while (remain.len > 0) {
const end = @min(hasher.buf.len, remain.len);