mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibCore: Rename class Gzip -> CGZip
This commit is contained in:
parent
edd0959c83
commit
a353d16ff4
Notes:
sideshowbarker
2024-07-19 17:43:13 +09:00
Author: https://github.com/msc94
Commit: a353d16ff4
Pull-request: https://github.com/SerenityOS/serenity/pull/750
Reviewed-by: https://github.com/awesomekling
3 changed files with 5 additions and 5 deletions
|
@ -13,13 +13,13 @@ static ByteBuffer handle_content_encoding(const ByteBuffer& buf, const String& c
|
|||
dbg() << "CHttpJob::handle_content_encoding: buf has content_encoding = " << content_encoding;
|
||||
|
||||
if (content_encoding == "gzip") {
|
||||
if (!Gzip::is_compressed(buf)) {
|
||||
if (!CGzip::is_compressed(buf)) {
|
||||
dbg() << "CHttpJob::handle_content_encoding: buf is not gzip compressed!";
|
||||
}
|
||||
|
||||
dbg() << "CHttpJob::handle_content_encoding: buf is gzip compressed!";
|
||||
|
||||
auto uncompressed = Gzip::decompress(buf);
|
||||
auto uncompressed = CGzip::decompress(buf);
|
||||
if (!uncompressed.has_value()) {
|
||||
dbg() << "CHttpJob::handle_content_encoding: Gzip::decompress() failed. Returning original buffer.";
|
||||
return buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue