summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2015-08-21 07:30:50 +0000
committerreyk <reyk@openbsd.org>2015-08-21 07:30:50 +0000
commitac272b400373ab835c91ff54c2d19d33dbaab6ee (patch)
tree727935fba7d2c57ec8b79c91d9a6343127c72689
parentWhitelist TIOCGPGRP (for tcgetpgrp()) in TAME_IOCTL. (diff)
downloadwireguard-openbsd-ac272b400373ab835c91ff54c2d19d33dbaab6ee.tar.xz
wireguard-openbsd-ac272b400373ab835c91ff54c2d19d33dbaab6ee.zip
The WebDAV MOVE method was not included in the switch statement
handling the HTTP methods in server_http.c which resulted in a 405 method not allowed error when trying to use it. Fix by jaminh on github
-rw-r--r--usr.sbin/httpd/server_http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c
index a31e8ff4da9..8ed98b56583 100644
--- a/usr.sbin/httpd/server_http.c
+++ b/usr.sbin/httpd/server_http.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server_http.c,v 1.97 2015/08/20 13:00:23 reyk Exp $ */
+/* $OpenBSD: server_http.c,v 1.98 2015/08/21 07:30:50 reyk Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
@@ -388,6 +388,7 @@ server_read_http(struct bufferevent *bev, void *arg)
case HTTP_METHOD_OPTIONS:
/* WebDAV methods */
case HTTP_METHOD_COPY:
+ case HTTP_METHOD_MOVE:
clt->clt_toread = 0;
break;
case HTTP_METHOD_POST: