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; }