mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibCompress: Port GzipDecompressor to Core::Stream
This commit is contained in:
committed by
Linus Groh
parent
4e7da96d58
commit
f93c7fbb5e
@@ -37,8 +37,8 @@ static Optional<ByteBuffer> handle_content_encoding(ByteBuffer const& buf, Depre
|
||||
dbgln_if(JOB_DEBUG, "Job::handle_content_encoding: buf is gzip compressed!");
|
||||
|
||||
auto uncompressed = Compress::GzipDecompressor::decompress_all(buf);
|
||||
if (!uncompressed.has_value()) {
|
||||
dbgln("Job::handle_content_encoding: Gzip::decompress() failed.");
|
||||
if (uncompressed.is_error()) {
|
||||
dbgln("Job::handle_content_encoding: Gzip::decompress() failed: {}", uncompressed.error());
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user