aboutsummaryrefslogtreecommitdiff
path: root/src/http_client_async.zig
diff options
context:
space:
mode:
authorGravatar Alex Lam S.L <alexlamsl@gmail.com> 2023-02-25 00:51:20 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-24 14:51:20 -0800
commit26df7ca8926c67311f5ca1fbfc04e2c374c3e1a3 (patch)
treef6b794c7ebc772bcd3e394b36a08b5c69ca215ff /src/http_client_async.zig
parentd33a53deb0d9d2d0b8a586a72e666bb46a174a69 (diff)
downloadbun-26df7ca8926c67311f5ca1fbfc04e2c374c3e1a3.tar.gz
bun-26df7ca8926c67311f5ca1fbfc04e2c374c3e1a3.tar.zst
bun-26df7ca8926c67311f5ca1fbfc04e2c374c3e1a3.zip
fix `compiler_rt` linking failure on `x86_64` (#2163)
- minor code tweaks
Diffstat (limited to 'src/http_client_async.zig')
-rw-r--r--src/http_client_async.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig
index 7060c3ed2..41684acde 100644
--- a/src/http_client_async.zig
+++ b/src/http_client_async.zig
@@ -1057,7 +1057,7 @@ pub fn hashHeaderName(name: string) u64 {
while (remain.len > 0) {
const end = @min(hasher.buf.len, remain.len);
- hasher.update(strings.copyLowercase(remain[0..end], &buf));
+ hasher.update(strings.copyLowercaseIfNeeded(remain[0..end], &buf));
remain = remain[end..];
}