mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 20:37:34 +01:00
Check if suspended in a couple additional places.
This commit is contained in:
parent
fe49f3bbe4
commit
4ec5990d8b
@ -78,6 +78,8 @@ public protocol FeedbinAPICallerDelegate: AnyObject {
|
|||||||
|
|
||||||
public func importOPML(opmlData: Data) async throws -> FeedbinImportResult {
|
public func importOPML(opmlData: Data) async throws -> FeedbinImportResult {
|
||||||
|
|
||||||
|
if suspended { throw TransportError.suspended }
|
||||||
|
|
||||||
let callURL = feedbinBaseURL.appendingPathComponent("imports.json")
|
let callURL = feedbinBaseURL.appendingPathComponent("imports.json")
|
||||||
var request = URLRequest(url: callURL, feedbinCredentials: credentials)
|
var request = URLRequest(url: callURL, feedbinCredentials: credentials)
|
||||||
request.addValue("text/xml; charset=utf-8", forHTTPHeaderField: HTTPRequestHeader.contentType)
|
request.addValue("text/xml; charset=utf-8", forHTTPHeaderField: HTTPRequestHeader.contentType)
|
||||||
@ -132,6 +134,8 @@ public protocol FeedbinAPICallerDelegate: AnyObject {
|
|||||||
|
|
||||||
public func retrieveSubscriptions() async throws -> [FeedbinSubscription]? {
|
public func retrieveSubscriptions() async throws -> [FeedbinSubscription]? {
|
||||||
|
|
||||||
|
if suspended { throw TransportError.suspended }
|
||||||
|
|
||||||
var callComponents = URLComponents(url: feedbinBaseURL.appendingPathComponent("subscriptions.json"), resolvingAgainstBaseURL: false)!
|
var callComponents = URLComponents(url: feedbinBaseURL.appendingPathComponent("subscriptions.json"), resolvingAgainstBaseURL: false)!
|
||||||
callComponents.queryItems = [URLQueryItem(name: "mode", value: "extended")]
|
callComponents.queryItems = [URLQueryItem(name: "mode", value: "extended")]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user