Merge pull request #1981 from abilops/master
Avoid cached response when adding new feed
This commit is contained in:
commit
6f682aa3cd
|
@ -14,7 +14,7 @@ import RSCore
|
||||||
class FeedFinder {
|
class FeedFinder {
|
||||||
|
|
||||||
static func find(url: URL, completion: @escaping (Result<Set<FeedSpecifier>, Error>) -> Void) {
|
static func find(url: URL, completion: @escaping (Result<Set<FeedSpecifier>, Error>) -> Void) {
|
||||||
downloadUsingCache(url) { (data, response, error) in
|
downloadAddingToCache(url) { (data, response, error) in
|
||||||
if response?.forcedStatusCode == 404 {
|
if response?.forcedStatusCode == 404 {
|
||||||
completion(.failure(AccountError.createErrorNotFound))
|
completion(.failure(AccountError.createErrorNotFound))
|
||||||
return
|
return
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit f54e1cbad3917822e40bc2310ed24bd7cb688a4f
|
Subproject commit c524ce9145dfe093500325b1c758ea83f82cc090
|
Loading…
Reference in New Issue