mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
refs #103 use redirected url as source url
Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
committed by
Spidy123222
parent
c6915d1f91
commit
5b977092f5
@@ -135,7 +135,7 @@ final class FetchSourceOperation: ResultOperation<Source>
|
||||
|
||||
decoder.managedObjectContext = childContext
|
||||
// Note: This may need to be response.url instead, to handle redirects @JoeMatt
|
||||
decoder.sourceURL = self.sourceURL
|
||||
decoder.sourceURL = response?.url ?? self.sourceURL
|
||||
|
||||
let source = try decoder.decode(Source.self, from: data)
|
||||
let identifier = source.identifier
|
||||
|
||||
Reference in New Issue
Block a user