mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-11 05:33:56 +00:00
Merge pull request #300 from vvanelslande/accpet
Change Accpet-Encoding to Accept-Encoding
This commit is contained in:
commit
2c6da365d9
@ -3018,7 +3018,7 @@ inline bool Server::write_response(Stream &strm, bool last_connection,
|
||||
}
|
||||
|
||||
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
|
||||
// TODO: 'Accpet-Encoding' has gzip, not gzip;q=0
|
||||
// TODO: 'Accept-Encoding' has gzip, not gzip;q=0
|
||||
const auto &encodings = req.get_header_value("Accept-Encoding");
|
||||
if (encodings.find("gzip") != std::string::npos &&
|
||||
detail::can_compress(res.get_header_value("Content-Type"))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user