diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-03-24 21:56:42 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-03-24 21:56:42 +0000 |
| commit | 7adb5cfb425dd927b3e78f1a9da75d825f6a3904 (patch) | |
| tree | 0fbc1aed0578414d48c7e2a8c94b8bfd28189e84 /src/tipideed/tipideed.c | |
| parent | 3f93b63a799bd4c131cc78af3836df7eb30fdf39 (diff) | |
| download | tipidee-7adb5cfb425dd927b3e78f1a9da75d825f6a3904.tar.gz | |
Respect HEAD in cgi
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/tipideed.c')
| -rw-r--r-- | src/tipideed/tipideed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c index a5f9fcd..35abdf2 100644 --- a/src/tipideed/tipideed.c +++ b/src/tipideed/tipideed.c @@ -292,7 +292,9 @@ static inline int serve (tipidee_rql *rql, char const *docroot, char *uribuf, ti if (!(ra.flags & TIPIDEE_RA_FLAG_CGI)) { if (infopath[0]) { respond_404(rql, docroot) ; return 0 ; } - if (rql->m == TIPIDEE_METHOD_POST) exit_405(rql, docroot, 0) ; + if (rql->m != TIPIDEE_METHOD_GET + && rql->m != TIPIDEE_METHOD_HEAD + && rql->m != TIPIDEE_METHOD_OPTIONS) exit_405(rql, docroot, 0) ; } if (rql->m == TIPIDEE_METHOD_OPTIONS) |
