Unverified Commit d7fc9bd6 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

DBRIS.pm: retain compatibility with older IO::Uncompress::Brotli versions

parent a75ede1e
Loading
Loading
Loading
Loading
+3 −1
Changes for lib/Travel/Status/DE/DBRIS.pm: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -368,8 +368,10 @@ sub get_with_cache_p {
			if (   $tx->res->headers->content_encoding
				&& $tx->res->headers->content_encoding eq 'br' )
			{
				# size (1_000_000) is optional in recent Brotli versions,
				# but not yet in the one shipped with Debian 13.
				$content = IO::Uncompress::Brotli::unbro(
					$tx->res->content->asset->slurp );
					$tx->res->content->asset->slurp, 1_000_000 );
			}

			if ($cache) {