summaryrefslogtreecommitdiffhomepage
path: root/NetEx/HttpRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NetEx/HttpRequest.cpp')
-rw-r--r--NetEx/HttpRequest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/NetEx/HttpRequest.cpp b/NetEx/HttpRequest.cpp
index ff24296..12f6b1b 100644
--- a/NetEx/HttpRequest.cpp
+++ b/NetEx/HttpRequest.cpp
@@ -9,6 +9,9 @@
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
+#ifndef _WIN32
+#include <strings.h>
+#endif
#include "HttpParam.h"
#include "List.h"
@@ -146,7 +149,11 @@ HttpRequest::ParseRequest(Text request)
value_buf[i++] = *p++;
value_buf[i] = 0;
+#ifdef _WIN32
if (!_stricmp(name_buf, "Cookie")) {
+#else
+ if (!strcasecmp(name_buf, "Cookie")) {
+#endif
ParseCookie(value_buf);
}
else {