Skip to content

Commit b3814b2

Browse files
author
Valentin Vanelslande
authored
Change Accpet-Encoding to Accept-Encoding
1 parent a444b61 commit b3814b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,7 @@ inline bool Server::write_response(Stream &strm, bool last_connection,
30173017
}
30183018

30193019
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
3020-
// TODO: 'Accpet-Encoding' has gzip, not gzip;q=0
3020+
// TODO: 'Accept-Encoding' has gzip, not gzip;q=0
30213021
const auto &encodings = req.get_header_value("Accept-Encoding");
30223022
if (encodings.find("gzip") != std::string::npos &&
30233023
detail::can_compress(res.get_header_value("Content-Type"))) {

0 commit comments

Comments
 (0)