Skip to content

fix: var set truncates multi-word values - #29

Merged
hars-21 merged 1 commit into
hars-21:mainfrom
chuanmuzhj:fix/var-set-multi-word
Aug 22, 2026
Merged

fix: var set truncates multi-word values#29
hars-21 merged 1 commit into
hars-21:mainfrom
chuanmuzhj:fix/var-set-multi-word

Conversation

@chuanmuzhj

@chuanmuzhj chuanmuzhj commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

var set uses next_string() and only keeps the first token, so var set auth Bearer abc123 stores Bearer and silently drops the rest. header set already fixed the same bug with collect(" ") — this PR aligns var set with that behavior and adds a regression test.
Fixes #28

@chuanmuzhj
chuanmuzhj requested a review from hars-21 as a code owner August 22, 2026 03:12

@hars-21 hars-21 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for taking the time to contribute! I’ve reviewed and approved it. 🙌

@hars-21
hars-21 merged commit 51d0d91 into hars-21:main Aug 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: var set truncates multi-word values

2 participants