X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp.c;h=6ca8bd8f565803129ddef2d0b956f85f99a9367c;hb=52aab20bb5a2da3bb033109974f6ee26c706ede5;hp=0e1c47befa1b5d10f368140741d6ae2b988ab77b;hpb=e921cd65ea18c86a132c2e5eac480f934dde2046;p=pazpar2-moved-to-github.git diff --git a/src/http.c b/src/http.c index 0e1c47b..6ca8bd8 100644 --- a/src/http.c +++ b/src/http.c @@ -62,13 +62,16 @@ typedef int socklen_t; #include #include -#include "util.h" -#include "eventl.h" #include "pazpar2.h" #include "http.h" #define MAX_HTTP_HEADER 4096 +#ifdef WIN32 +#define strncasecmp _strnicmp +#define strcasecmp _stricmp +#endif + static void proxy_io(IOCHAN i, int event); static struct http_channel *http_create(const char *addr, struct conf_server *server); @@ -86,8 +89,8 @@ struct http_channel_observer_s { }; -static const char *http_lookup_header(struct http_header *header, - const char *name) +const char *http_lookup_header(struct http_header *header, + const char *name) { for (; header; header = header->next) if (!strcasecmp(name, header->name))