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
Describe the bug 馃悰
I am currently using this library to build the requests sent to algolia, and noticed than when a value has a special character like & it is not percent encoded, leading to an incorrect query and the request failing.
If I percent encode it myself, before passing it in the library, the library then, double percent encodes it, leading to 0 results.
Hi @mschinis,
Could you give a concrete example of a parameter leading to failure?
I made a test of query with & and the url encoding works as expected.
letquery=Query().set(\.query, to:"request with &")print(query.urlEncodedString)// query=request%20with%20%26
Describe the bug 馃悰
I am currently using this library to build the requests sent to algolia, and noticed than when a value has a special character like
&
it is not percent encoded, leading to an incorrect query and the request failing.If I percent encode it myself, before passing it in the library, the library then, double percent encodes it, leading to 0 results.
Culprit
algoliasearch-client-swift/Sources/AlgoliaSearchClient/Models/Search/Query/Query+URLEncodable.swift
Line 105 in 43c77ce
Expected behavior 馃挱
The library should percent encode, allowing only alpha numerics instead of url allowed
The text was updated successfully, but these errors were encountered: