From 13d55443afae5abfaece6c4eb5cc1eb6f23ad1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mickae=CC=88l=20Menu?= Date: Wed, 23 Aug 2023 17:15:21 +0200 Subject: [PATCH] Fix `ParserAssetFactory` --- .../main/java/org/readium/r2/streamer/ParserAssetFactory.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/readium/streamer/src/main/java/org/readium/r2/streamer/ParserAssetFactory.kt b/readium/streamer/src/main/java/org/readium/r2/streamer/ParserAssetFactory.kt index 1a5e2d079e..8f6adfbb1b 100644 --- a/readium/streamer/src/main/java/org/readium/r2/streamer/ParserAssetFactory.kt +++ b/readium/streamer/src/main/java/org/readium/r2/streamer/ParserAssetFactory.kt @@ -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 @@ -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) )