Skip to content

Commit 27668a9

Browse files
authored
Don't require a self link to enable HTTP requests in a RWPM (#415)
1 parent d3fcc4d commit 27668a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/Streamer/Parser/Readium/ReadiumWebPubParser.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ public class ReadiumWebPubParser: PublicationParser, Loggable {
5858
// For a manifest, we discard the `fetcher` provided by the Streamer, because it was only
5959
// used to read the manifest file. We use an `HTTPFetcher` instead to serve the remote
6060
// resources.
61-
if !isPackage,
62-
let baseURL = try manifest.link(withRel: .`self`)?.url().httpURL
63-
{
61+
if !isPackage {
62+
let baseURL = try manifest.link(withRel: .`self`)?.url().httpURL
6463
fetcher = HTTPFetcher(client: httpClient, baseURL: baseURL)
6564
}
6665

0 commit comments

Comments
 (0)