aboutsummaryrefslogtreecommitdiff
path: root/src/install/npm.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/install/npm.zig')
-rw-r--r--src/install/npm.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/install/npm.zig b/src/install/npm.zig
index 66f9d02cb..e7fa24b1a 100644
--- a/src/install/npm.zig
+++ b/src/install/npm.zig
@@ -180,10 +180,10 @@ pub const Registry = struct {
const hashed = HTTPClient.hashHeaderName(header.name);
switch (hashed) {
- HTTPClient.hashHeaderName("last-modified") => {
+ HTTPClient.hashHeaderConst("last-modified") => {
newly_last_modified = header.value;
},
- HTTPClient.hashHeaderName("etag") => {
+ HTTPClient.hashHeaderConst("etag") => {
new_etag = header.value;
},
else => {},
@@ -193,7 +193,7 @@ pub const Registry = struct {
var new_etag_buf: [64]u8 = undefined;
if (new_etag.len < new_etag_buf.len) {
- std.mem.copy(u8, &new_etag_buf, new_etag);
+ bun.copy(u8, &new_etag_buf, new_etag);
new_etag = new_etag_buf[0..new_etag.len];
}