Skip to content

Commit 152fe20

Browse files
committed
Added character escape for arguments in url
1 parent b7f6278 commit 152fe20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/StravaSwift/Router.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ extension Router: URLRequestConvertible {
412412
let authParams = StravaClient.sharedInstance.authParams
413413
.map { "\($0.key)=\($0.value)" }
414414
.joined(separator:"&")
415+
.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)!
415416
return URL(string: "\(baseUrl)?\(authParams)")!
416417
}
417418

0 commit comments

Comments
 (0)