Skip to content

[Bug]: Refit Trimming double quotes from the end of the query string #2044

@baynezy

Description

@baynezy

Describe the bug 🐞

I have a previously working integration with Auth0:

[Get("/users?q=app_metadata.profileId:\"{profileId}\"")]
Task<IApiResponse<List<Auth0User>>> GetUsersByProfileIdAsync(string profileId, CancellationToken ct);

With version 8.0.0 this worked perfectly. When I upgrade to 9.0.2 then it trims the final " from the end of the URL.

Step to reproduce

  1. Create a project with Refit 8.0.0
  2. Create a Refit API call that has a double quote on the end of the query string
  3. Execute the code and note the URL that is called
  4. Update the project to Refit 9.0.2
  5. Execute the code again and compare the URL to the previous one

Reproduction repository

No response

Expected behavior

Trailing double quotes should not be removed.

Screenshots 🖼️

No response

IDE

Rider Windows

Operating system

Windows

Version

11

Device

No response

Refit Version

9.0.2

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions