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
Fixes the issues with special characters encoding in the request URLs.
- Percent encodes `/` character in the path components
- Updates the url parameters percent encoding using the approach from the previous major version of the client
- Percent encodes url parameters names
Copy file name to clipboardExpand all lines: Tests/AlgoliaSearchClientTests/Unit/PathTests.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ import FoundationNetworking
16
16
classPathTests:XCTestCase{
17
17
18
18
func testIndexNameEncoding(){
19
-
letpath=URL(string:"/1/indexes/")!.appendingPathComponent("Index name with spaces")
19
+
letpath=URL(string:"/1/indexes/")!.appendingPathComponent("Index name with spaces".addingPercentEncoding(withAllowedCharacters:.urlPathComponentAllowed)!)
0 commit comments