Unleash / unleash-proxy-client-swift

Apache License 2.0
14 stars 20 forks source link

Fix URL encoding of plus (+) sign within query params #67

Closed jlubawy closed 10 months ago

jlubawy commented 10 months ago

About the changes

Adds proper encoding if a context/property contains a plus (+) sign. The typical use-case for this is using email aliases such as unleash+1@example.com, feature toggles would fail to evaluate to true if a constraint was added for this userId.

I added some test cases to the unit tests and they are passing, but I'm happy to help refactor if there is a better approach to this.