mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-16 01:12:18 +03:00
change gzipped detection
This commit is contained in:
@@ -1912,6 +1912,14 @@ base64Decode(const string &input)
|
||||
return out;
|
||||
}
|
||||
|
||||
bool
|
||||
isGzipped(const string &stream)
|
||||
{
|
||||
if (stream.size() < 2) return false;
|
||||
auto unsinged_stream = reinterpret_cast<const u_char *>(stream.data());
|
||||
return unsinged_stream[0] == 0x1f && unsinged_stream[1] == 0x8b;
|
||||
}
|
||||
|
||||
bool
|
||||
containsInvalidUtf8(const string &payload)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user