From 94321ee8e25e7efe9033b4d2b547cd71b64dea40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Luis=20Sanmart=C3=ADn=20Rozada?= Date: Wed, 8 Sep 2010 11:01:23 +0200 Subject: [PATCH] PATCH apache.c: support IBM HTTP Server. IBM HTTP Server is a version of apache 2 that comes with Websphere. IBM change the server name header to: Server: IBM_HTTP_Server Signed-off-by: Florian Forster --- src/apache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apache.c b/src/apache.c index 3d6d957c..80c66bff 100644 --- a/src/apache.c +++ b/src/apache.c @@ -144,6 +144,8 @@ static size_t apache_header_callback (void *buf, size_t size, size_t nmemb, st->server_type = APACHE; else if (strstr (buf, "lighttpd") != NULL) st->server_type = LIGHTTPD; + else if (strstr (buf, "IBM_HTTP_Server") != NULL) + st->server_type = APACHE; else { const char *hdr = buf; @@ -420,6 +422,8 @@ static int init_host (apache_t *st) /* {{{ */ st->server_type = APACHE; else if (strcasecmp(st->server, "lighttpd") == 0) st->server_type = LIGHTTPD; + else if (strcasecmp(st->server, "ibm_http_server") == 0) + st->server_type = APACHE; else WARNING ("apache plugin: Unknown `Server' setting: %s", st->server); -- 2.30.2