Merge pull request #1723 from Wevah/ios-candidate

Update RSWeb
This commit is contained in:
Brent Simmons
2020-01-27 21:13:10 -08:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -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) {

View File

@@ -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 {