mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
append query items, don't overwrite everything
This commit is contained in:
@@ -40,9 +40,9 @@ public extension URLRequest {
|
||||
guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
|
||||
return
|
||||
}
|
||||
components.queryItems = [
|
||||
URLQueryItem(name: "access_token", value: credentials.secret),
|
||||
]
|
||||
var queryItems = components.queryItems ?? []
|
||||
queryItems.append(URLQueryItem(name: "access_token", value: credentials.secret))
|
||||
components.queryItems = queryItems
|
||||
self.url = components.url
|
||||
case .readerBasic:
|
||||
setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
|
||||
|
||||
Reference in New Issue
Block a user