From b6f50b1561cdc101140ab7f8eda23468088efc32 Mon Sep 17 00:00:00 2001 From: hmuronaka Date: Mon, 22 Jan 2018 09:41:34 +0900 Subject: [PATCH] replace '+' with '%2B' in URLRequest.queryParameters. --- SwiftlySalesforce/Classes/Resource.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SwiftlySalesforce/Classes/Resource.swift b/SwiftlySalesforce/Classes/Resource.swift index f5b82e3..412c247 100644 --- a/SwiftlySalesforce/Classes/Resource.swift +++ b/SwiftlySalesforce/Classes/Resource.swift @@ -164,6 +164,7 @@ fileprivate extension URLRequest { return URLQueryItem(name: param.key, value: nil) } } + _comps.percentEncodedQuery = _comps.percentEncodedQuery?.replacingOccurrences(of: "+", with: "%2B") guard let _url = _comps.url else { throw NSError(domain: NSURLErrorDomain, code: NSURLErrorBadURL, userInfo: nil) }