Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for bearer tokens missing from request headers on bun install step #991

Merged
merged 2 commits into from Aug 5, 2022

Conversation

soneymathew
Copy link
Contributor

Fix for #190 (comment) in #190

@github-actions github-actions bot added packages:bun needs tests Something that needs more testing labels Aug 5, 2022
@@ -47,7 +47,7 @@ pub fn appendFmt(this: *HeaderBuilder, name: string, comptime fmt: string, args:
const value = this.content.fmt(fmt, args);

const value_ptr = Api.StringPointer{
.offset = @truncate(u32, this.content.len),
.offset = @truncate(u32, this.content.len - value.len),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.content.fmt(fmt, args); increased the this.content.len and messed up the offset.

@Jarred-Sumner Jarred-Sumner merged commit 9fad889 into oven-sh:main Aug 5, 2022
@@ -1,3 +1,26 @@
// Copyright Joyent, Inc. and other Node contributors.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed to add this header previously when adding these tests

@Jarred-Sumner
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests Something that needs more testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants