Skip to content

Conversation

@baynezy
Copy link

@baynezy baynezy commented Jan 10, 2026

What kind of change does this PR introduce?

This fixes #2044 and #2032

What is the current behavior?

Explained here #2044

What is the new behavior?

The trailing string logic for extracting parameters was overly aggressive.

What might this PR break?
I have run all existing tests and the one I added to show this bug and they all pass locally.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Docs did not need amending

Other information:

@baynezy
Copy link
Author

baynezy commented Jan 11, 2026

Can we please get this or #2041 merged and deployed please, as it is quite broken for this use case.

@baynezy baynezy changed the title bug: stop removing trailing single chars from query string fix: stop removing trailing single chars from query string Jan 11, 2026
@auptonmercuria
Copy link

auptonmercuria commented Jan 15, 2026

Does this also fix an issue with trailing slashes on the URI? e.g. https://github.com/reactiveui/refit/pull/ is getting modified to https://github.com/reactiveui/refit/pull which now fails on some sites?

GitHub
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. - Pull requests · reactiveu...
GitHub
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. - Pull requests · reactiveu...

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]: Refit Trimming double quotes from the end of the query string

2 participants