mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibCompress: Refactor gzip de/compressor using zlib
This commit is contained in:
parent
dafbe32626
commit
2baa7977a4
Notes:
github-actions[bot]
2025-03-19 12:48:46 +00:00
Author: https://github.com/devgianlu
Commit: 2baa7977a4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3755
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
4 changed files with 39 additions and 338 deletions
|
@ -36,7 +36,7 @@ WebIDL::ExceptionOr<GC::Ref<DecompressionStream>> DecompressionStream::construct
|
|||
case Bindings::CompressionFormat::DeflateRaw:
|
||||
return TRY(Compress::DeflateDecompressor::construct(make<LittleEndianInputBitStream>(move(input_stream))));
|
||||
case Bindings::CompressionFormat::Gzip:
|
||||
return make<Compress::GzipDecompressor>(move(input_stream));
|
||||
return TRY(Compress::GzipDecompressor::create((move(input_stream))));
|
||||
}
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue