From b9bba7b614350c9c2e512e7068d45c28e683158d Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Mon, 27 Jan 2020 22:58:59 -0600 Subject: [PATCH] Update RSWeb --- Frameworks/Account/LocalAccount/LocalAccountRefresher.swift | 6 +++--- Shared/Commands/SendToMicroBlogCommand.swift | 2 +- submodules/RSWeb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift b/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift index 82581d1e9..870113d3d 100644 --- a/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift +++ b/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift @@ -53,12 +53,12 @@ extension LocalAccountRefresher: DownloadSessionDelegate { return nil } - let request = NSMutableURLRequest(url: url) + var request = URLRequest(url: url) if let conditionalGetInfo = feed.conditionalGetInfo { - conditionalGetInfo.addRequestHeadersToURLRequest(request) + conditionalGetInfo.addRequestHeadersToURLRequest(&request) } - return request as URLRequest + return request } func downloadSession(_ downloadSession: DownloadSession, downloadDidCompleteForRepresentedObject representedObject: AnyObject, response: URLResponse?, data: Data, error: NSError?, completion: @escaping () -> Void) { diff --git a/Shared/Commands/SendToMicroBlogCommand.swift b/Shared/Commands/SendToMicroBlogCommand.swift index 58a3a2d6b..71dca639f 100644 --- a/Shared/Commands/SendToMicroBlogCommand.swift +++ b/Shared/Commands/SendToMicroBlogCommand.swift @@ -50,7 +50,7 @@ final class SendToMicroBlogCommand: SendToCommand { let s = article.attributionString + article.linkString let urlQueryDictionary = ["text": s] - guard let urlQueryString = urlQueryDictionary.urlQueryString() else { + guard let urlQueryString = urlQueryDictionary.urlQueryString else { return } guard let url = URL(string: "microblog://post?" + urlQueryString) else { diff --git a/submodules/RSWeb b/submodules/RSWeb index e51306297..5c9d9c575 160000 --- a/submodules/RSWeb +++ b/submodules/RSWeb @@ -1 +1 @@ -Subproject commit e513062972cd8097179ed39999f327ad29c8a4e1 +Subproject commit 5c9d9c575c8bad32cf12ee81243e6a7d28021667