diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-08-21 07:30:51 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-08-21 07:30:51 +0000 |
commit | 8b03007845f3a7d8ff990e90429c8391c5dd817d (patch) | |
tree | 7ddcdff0d1cf1c9a0dd92a801614ae7fa1925012 /usr.sbin | |
parent | 259b630d4e21e470c4cd211941cb8cc2bf2e24ca (diff) |
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
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/httpd/server_http.c | 3 |
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: |