mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibCompress: Port GzipDecompressor to Core::Stream
This commit is contained in:
parent
4e7da96d58
commit
f93c7fbb5e
9 changed files with 80 additions and 145 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue