Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Sources/Streamer/Parser/Readium/ReadiumWebPubParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ public class ReadiumWebPubParser: PublicationParser, Loggable {
// For a manifest, we discard the `fetcher` provided by the Streamer, because it was only
// used to read the manifest file. We use an `HTTPFetcher` instead to serve the remote
// resources.
if !isPackage,
let baseURL = try manifest.link(withRel: .`self`)?.url().httpURL
{
if !isPackage {
let baseURL = try manifest.link(withRel: .`self`)?.url().httpURL
fetcher = HTTPFetcher(client: httpClient, baseURL: baseURL)
}

Expand Down