summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relay_http.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2017-03-10 21:04:36 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2017-03-10 21:04:36 +0000
commit86cae89c814196691a4e684c33aa0856848f70f6 (patch)
treefd1b052da298a3af9208671a01d83a09931b22c4 /usr.sbin/relayd/relay_http.c
parent2cab8b5419a59f1a0bfc8bb6f2e7acd9e3261828 (diff)
DELETE can have a body.
Fix by Rivo Nurges, fixes a problem with Atlassian JIRA OK benno@
Diffstat (limited to 'usr.sbin/relayd/relay_http.c')
-rw-r--r--usr.sbin/relayd/relay_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c
index c5840bd96cf..4082ab35af0 100644
--- a/usr.sbin/relayd/relay_http.c
+++ b/usr.sbin/relayd/relay_http.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay_http.c,v 1.63 2016/09/26 16:25:16 reyk Exp $ */
+/* $OpenBSD: relay_http.c,v 1.64 2017/03/10 21:04:35 reyk Exp $ */
/*
* Copyright (c) 2006 - 2016 Reyk Floeter <reyk@openbsd.org>
@@ -418,7 +418,6 @@ relay_read_http(struct bufferevent *bev, void *arg)
cre->toread = TOREAD_UNLIMITED;
bev->readcb = relay_read;
break;
- case HTTP_METHOD_DELETE:
case HTTP_METHOD_GET:
case HTTP_METHOD_HEAD:
/* WebDAV methods */
@@ -426,6 +425,7 @@ relay_read_http(struct bufferevent *bev, void *arg)
case HTTP_METHOD_MOVE:
cre->toread = 0;
break;
+ case HTTP_METHOD_DELETE:
case HTTP_METHOD_OPTIONS:
case HTTP_METHOD_POST:
case HTTP_METHOD_PUT: