Skip to content

Fix stream --cursor not being applied to the URL#50

Merged
mattn merged 1 commit into
mainfrom
fix-stream-cursor
Jun 5, 2026
Merged

Fix stream --cursor not being applied to the URL#50
mattn merged 1 commit into
mainfrom
fix-stream-cursor

Conversation

@mattn

@mattn mattn commented Jun 5, 2026

Copy link
Copy Markdown
Owner

u.Query() returns a copy of the query values, so mutating it with Add had no effect on the request URL and --cursor was silently ignored. Encode the modified query back into RawQuery, and extract the host-building logic into streamHost so it can be covered by a unit test.

u.Query() returns a copy, so mutating it via Add did not change the
request URL. Encode the modified query back into RawQuery, and extract
the host-building logic into streamHost with a test.
@mattn mattn merged commit 6af93b8 into main Jun 5, 2026
2 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.

1 participant