summaryrefslogtreecommitdiffhomepage
path: root/NetEx/HttpResponse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NetEx/HttpResponse.cpp')
-rw-r--r--NetEx/HttpResponse.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/NetEx/HttpResponse.cpp b/NetEx/HttpResponse.cpp
index de64f9d..2047612 100644
--- a/NetEx/HttpResponse.cpp
+++ b/NetEx/HttpResponse.cpp
@@ -9,6 +9,9 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#ifndef _WIN32
+#include <strings.h>
+#endif
#include "HttpParam.h"
#include "List.h"
@@ -241,7 +244,11 @@ HttpResponse::ParseResponse(Text response)
value_buf[i++] = *p++;
value_buf[i] = 0;
+#ifdef _WIN32
if (!_stricmp(name_buf, "Set-Cookie")) {
+#else
+ if (!strcasecmp(name_buf, "Set-Cookie")) {
+#endif
ParseCookie(value_buf);
}
else {
@@ -305,7 +312,11 @@ HttpResponse::ParseCookie(const char* param)
p++;
// ignore the version attribute
+#ifdef _WIN32
if (_stricmp(name, "version")) {
+#else
+ if (strcasecmp(name, "version")) {
+#endif
HttpParam* param = new HttpParam(name, data);
if (param)
cookies.append(param);