Don't ignore HEAD requests

This commit is contained in:
Thomas Kolb 2013-03-07 20:07:01 +01:00
parent e1c3d216f6
commit 7d35b1f48d
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -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;
}