diff options
author | Christian Hesse <mail@eworm.de> | 2017-11-28 18:12:24 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-11-28 18:12:24 +0100 |
commit | 7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27 (patch) | |
tree | fda38f3cba45d2335d061b6375b762893e08fbdc | |
parent | d07104afdea87ef941406a15ceb088fc30a931d4 (diff) | |
download | pacredir-7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27.tar.gz pacredir-7e233c67fcfeb5d8a14fcfa26a9bbd53b2968a27.tar.zst |
allow HEAD requests
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |