aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Pierre CM <114198641+pierre-cm@users.noreply.github.com> 2023-10-18 01:56:27 +0200
committerGravatar GitHub <noreply@github.com> 2023-10-17 16:56:27 -0700
commite731eff3824d9649522c87941c84a83c09c49ca3 (patch)
tree4525c9f1548118ed955c5f39432b8f62b64ff3c6
parenta57d7ecb5b9e283d51fe35961cdcc96bc59a2c0b (diff)
downloadbun-e731eff3824d9649522c87941c84a83c09c49ca3.tar.gz
bun-e731eff3824d9649522c87941c84a83c09c49ca3.tar.zst
bun-e731eff3824d9649522c87941c84a83c09c49ca3.zip
fix #4766 (#6563)
-rw-r--r--src/cli/create_command.zig8
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)),
},
},
);