aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-11-28 18:12:24 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-11-28 18:12:24 +0100
commit7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27 (patch)
treefda38f3cba45d2335d061b6375b762893e08fbdc
parentd07104afdea87ef941406a15ceb088fc30a931d4 (diff)
downloadpacredir-7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27.tar.gz
pacredir-7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27.tar.zst
allow HEAD requests
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
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,