Skip to content

Commit

Permalink
Prevent Opds2Sniffer from reading the whole blob (readium#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
qnga authored Mar 29, 2024
1 parent 3cb8e61 commit af16ea9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public object Opds2Sniffer : FormatSniffer {
format: Format,
source: Readable
): Try<Format, ReadError> {
if (format.hasMoreThan(JsonSpecification)) {
if (format.hasMoreThan(JsonSpecification) || !source.canReadWholeBlob()) {
return Try.success(format)
}

Expand Down

0 comments on commit af16ea9

Please sign in to comment.