From ad9f6423e2ff0a7795f64bbf91828b7e32be87cb Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 23 Dec 2023 11:45:08 -0500 Subject: [PATCH] Fix #1744 --- httplib.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/httplib.h b/httplib.h index d29ff85..528bbf3 100644 --- a/httplib.h +++ b/httplib.h @@ -160,10 +160,6 @@ using ssize_t = long; #define WSA_FLAG_NO_HANDLE_INHERIT 0x80 #endif -#ifndef strcasecmp -#define strcasecmp _stricmp -#endif // strcasecmp - using socket_t = SOCKET; #ifdef CPPHTTPLIB_USE_POLL #define poll(fds, nfds, timeout) WSAPoll(fds, nfds, timeout) @@ -3925,8 +3921,8 @@ inline bool read_content_chunked(Stream &strm, T &x, } inline bool is_chunked_transfer_encoding(const Headers &headers) { - return !strcasecmp(get_header_value(headers, "Transfer-Encoding", 0, ""), - "chunked"); + return compare_case_ignore( + get_header_value(headers, "Transfer-Encoding", 0, ""), "chunked"); } template