From 7d35b1f48d04c2ad867aab3bfb761dca01256ccc Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Thu, 7 Mar 2013 20:07:01 +0100 Subject: [PATCH] Don't ignore HEAD requests --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 44246e9..c223826 100644 --- a/main.c +++ b/main.c @@ -233,7 +233,7 @@ static int connection_handler(void * cls, void **ptr) { struct ConnectionState *connstate; - if (0 != strcmp(method, "GET")) { + if (0 != strcmp(method, "GET") && 0 != strcmp(method, "HEAD")) { LOG(LVL_WARN, "Unexpected method: %s.", method); return MHD_NO; }