Don't ignore HEAD requests

This commit is contained in:
Thomas Kolb 2013-03-07 20:07:01 +01:00
parent e1c3d216f6
commit 7d35b1f48d

2
main.c
View file

@ -233,7 +233,7 @@ static int connection_handler(void * cls,
void **ptr) { void **ptr) {
struct ConnectionState *connstate; struct ConnectionState *connstate;
if (0 != strcmp(method, "GET")) { if (0 != strcmp(method, "GET") && 0 != strcmp(method, "HEAD")) {
LOG(LVL_WARN, "Unexpected method: %s.", method); LOG(LVL_WARN, "Unexpected method: %s.", method);
return MHD_NO; return MHD_NO;
} }