diff --git a/Sources/LyftAPI/LyftAPIURLEncoding.swift b/Sources/LyftAPI/LyftAPIURLEncoding.swift index 065b179..49e79d0 100644 --- a/Sources/LyftAPI/LyftAPIURLEncoding.swift +++ b/Sources/LyftAPI/LyftAPIURLEncoding.swift @@ -29,7 +29,7 @@ func lyftURLEncodedInURL(request: URLRequest, parameters: [String: Any]?) -> (UR .flatMap { components(forKey: $0, value: $1) } var urlComponents = URLComponents(url: mutableURLRequest.url!, resolvingAgainstBaseURL: false) - urlComponents?.queryItems = (urlComponents?.queryItems ?? []) + queryItems + urlComponents?.queryItems?.append(contentsOf: queryItems) mutableURLRequest.url = urlComponents?.url return (mutableURLRequest, nil) }