From d4b05e98ae16cf8eb2f912fd65fdf07a58f8225f Mon Sep 17 00:00:00 2001 From: chme Date: Fri, 9 Feb 2018 18:26:37 +0100 Subject: [PATCH] [httpd] Add PUT and DELETE to the allowed http request methods --- src/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd.c b/src/httpd.c index a0b28c6b..3a3852e8 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -1687,7 +1687,7 @@ httpd_init(const char *webroot) if (allow_origin) { if (strlen(allow_origin) != 0) - evhttp_set_allowed_methods(evhttpd, EVHTTP_REQ_GET | EVHTTP_REQ_POST | EVHTTP_REQ_HEAD | EVHTTP_REQ_OPTIONS); + evhttp_set_allowed_methods(evhttpd, EVHTTP_REQ_GET | EVHTTP_REQ_POST | EVHTTP_REQ_PUT | EVHTTP_REQ_DELETE | EVHTTP_REQ_HEAD | EVHTTP_REQ_OPTIONS); else allow_origin = NULL; }