Don't ignore HEAD requests
This commit is contained in:
parent
e1c3d216f6
commit
7d35b1f48d
2
main.c
2
main.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue