Skip to content

Commit

Permalink
Fix ParserAssetFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu committed Aug 23, 2023
1 parent 37384e8 commit 13d5544
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.readium.r2.shared.publication.Publication
import org.readium.r2.shared.resource.Resource
import org.readium.r2.shared.resource.ResourceContainer
import org.readium.r2.shared.resource.RoutingContainer
import org.readium.r2.shared.resource.StringResource
import org.readium.r2.shared.util.MessageError
import org.readium.r2.shared.util.ThrowableError
import org.readium.r2.shared.util.Try
Expand Down Expand Up @@ -87,10 +86,7 @@ internal class ParserAssetFactory(

val container =
RoutingContainer(
local = ResourceContainer(
path = "/manifest.json",
resource = StringResource(manifest.toJSON().toString(), asset.mediaType)
),
local = ResourceContainer(path = "/manifest.json", asset.resource),
remote = HttpContainer(httpClient, baseUrl)
)

Expand Down

0 comments on commit 13d5544

Please sign in to comment.