From 7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 28 Nov 2017 18:12:24 +0100 Subject: allow HEAD requests --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacredir.c b/pacredir.c index 01d37b4..c034361 100644 --- a/pacredir.c +++ b/pacredir.c @@ -393,7 +393,7 @@ static int ahc_echo(void * cls, basename = strstr(basename, "/") + 1; /* unexpected method */ - if (strcmp(method, "GET") != 0) + if (strcmp(method, "GET") != 0 && strcmp(method, "HEAD") != 0) return MHD_NO; /* The first time only the headers are valid, -- cgit v1.2.3-54-g00ecf