diff options
author | 2023-10-17 17:51:05 -0700 | |
---|---|---|
committer | 2023-10-17 17:51:05 -0700 | |
commit | 9584e60002c3fa23ec537cf0c682714add7bd796 (patch) | |
tree | 64f0200e0a40d51c479f16983a83351ae6b32f64 /src/cli/create_command.zig | |
parent | 1373a2351dbbc17e6baf381a95bd373fd14eb57f (diff) | |
parent | e731eff3824d9649522c87941c84a83c09c49ca3 (diff) | |
download | bun-postinstall_3.tar.gz bun-postinstall_3.tar.zst bun-postinstall_3.zip |
Merge branch 'main' into postinstall_3postinstall_3
Diffstat (limited to 'src/cli/create_command.zig')
-rw-r--r-- | src/cli/create_command.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/create_command.zig b/src/cli/create_command.zig index b112d5899..b11a85b1e 100644 --- a/src/cli/create_command.zig +++ b/src/cli/create_command.zig @@ -1843,17 +1843,17 @@ pub const Example = struct { if (env_loader.map.get("GITHUB_ACCESS_TOKEN")) |access_token| { if (access_token.len > 0) { - headers_buf = try std.fmt.allocPrint(ctx.allocator, "Access-TokenBearer {s}", .{access_token}); + headers_buf = try std.fmt.allocPrint(ctx.allocator, "AuthorizationBearer {s}", .{access_token}); try header_entries.append( ctx.allocator, Headers.Kv{ .name = Api.StringPointer{ .offset = 0, - .length = @as(u32, @intCast("Access-Token".len)), + .length = @as(u32, @intCast("Authorization".len)), }, .value = Api.StringPointer{ - .offset = @as(u32, @intCast("Access-Token".len)), - .length = @as(u32, @intCast(headers_buf.len - "Access-Token".len)), + .offset = @as(u32, @intCast("Authorization".len)), + .length = @as(u32, @intCast(headers_buf.len - "Authorization".len)), }, }, ); |