mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Add missing explicit const_cast
This commit is contained in:
parent
a7052cba22
commit
94fc229c44
1 changed files with 1 additions and 1 deletions
|
@ -1267,7 +1267,7 @@ inline bool compress(std::string &content) {
|
||||||
if (ret != Z_OK) { return false; }
|
if (ret != Z_OK) { return false; }
|
||||||
|
|
||||||
strm.avail_in = content.size();
|
strm.avail_in = content.size();
|
||||||
strm.next_in = reinterpret_cast<Bytef*>(content.data());
|
strm.next_in = const_cast<Bytef*>(reinterpret_cast<const Bytef*>(content.data()));
|
||||||
|
|
||||||
std::string compressed;
|
std::string compressed;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue