mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
enable i2p gzip compression
This commit is contained in:
parent
47bf0ef591
commit
3053a9b6a0
4 changed files with 10 additions and 4 deletions
5
Base.cpp
5
Base.cpp
|
@ -329,9 +329,10 @@ namespace data
|
|||
return ret == Z_STREAM_END || ret < 0;
|
||||
}
|
||||
|
||||
void GzipInflator::Inflate (const std::stringstream& in, std::ostream& out)
|
||||
void GzipInflator::Inflate (std::stringstream& in, std::ostream& out)
|
||||
{
|
||||
Inflate ((const uint8_t *)in.str ().c_str (), in.str ().length (), out);
|
||||
auto str = in.str ().substr (in.tellg ());
|
||||
Inflate ((const uint8_t *)str.c_str (), str.length (), out);
|
||||
}
|
||||
|
||||
GzipDeflator::GzipDeflator (): m_IsDirty (false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue