diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-03-24 22:16:32 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-03-24 22:16:32 +0000 |
| commit | fc3255cf6939d22cc54240c5c9be1fddcfea8beb (patch) | |
| tree | 03aa4f093d6e21981b4fbf10d3edb4c63e9fc352 /src/tipideed/options.c | |
| parent | 7adb5cfb425dd927b3e78f1a9da75d825f6a3904 (diff) | |
| download | tipidee-fc3255cf6939d22cc54240c5c9be1fddcfea8beb.tar.gz | |
Add PATCH support, accept PUT/DELETE/PATCH on cgi
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/options.c')
| -rw-r--r-- | src/tipideed/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tipideed/options.c b/src/tipideed/options.c index 0ecbb6f..6de40ba 100644 --- a/src/tipideed/options.c +++ b/src/tipideed/options.c @@ -17,7 +17,7 @@ int respond_options (tipidee_rql const *rql, uint32_t flags) tipidee_response_status(buffer_1, rql, 200, "OK") ; tipidee_response_header_writeall_G(buffer_1, g.rhdr, g.rhdrn, 0) ; buffer_putsnoflush(buffer_1, "Content-Length: 0\r\nAllow: GET, HEAD") ; - if (flags & 1) buffer_putsnoflush(buffer_1, ", POST") ; + if (flags & 1) buffer_putsnoflush(buffer_1, ", POST, PUT, DELETE, PATCH") ; buffer_putnoflush(buffer_1, "\r\n\r\n", 4) ; if (flags & 2) tipidee_log_answer(g.logv, rql, 200, 0) ; tain_add_g(&deadline, &g.writetto) ; |
