You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code that causes this is found in RequestBuilderImplementation, path queries are readded to queryParamsToAdd to the start using insert. We can prevent this by either iterating query.AllKeys in reverse or by keeping count of how many items have been prepended and using this number as an insert index.
Describe the bug 🐞
Query parameters defined in the path are reversed in the resulting request.
Step to reproduce
See
RequestBuilderTests.ParametersShouldBePutAsExplicitQueryString
.Becomes
/query?q2=value2&q1=value1
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
Expected
/query?q1=value1&q2=value2
Cause
The code that causes this is found in
RequestBuilderImplementation
, path queries are readded toqueryParamsToAdd
to the start using insert. We can prevent this by either iteratingquery.AllKeys
in reverse or by keeping count of how many items have been prepended and using this number as an insert index.The text was updated successfully, but these errors were encountered: