Change Accpet-Encoding to Accept-Encoding

This commit is contained in:
Valentin Vanelslande 2019-12-22 13:02:20 -05:00 committed by GitHub
parent a444b612af
commit b3814b2b80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3017,7 +3017,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"))) {