summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgiovanni <giovanni@cvs.openbsd.org>2012-04-27 14:01:36 +0000
committergiovanni <giovanni@cvs.openbsd.org>2012-04-27 14:01:36 +0000
commitab710cb1ac0c4befa795a3508d22b650cd179e59 (patch)
treeaf5d4c24d83528851a21f31d02de40e680cb90bb
parent643770946a49719167eb3b70c08ab275f19fc73f (diff)
A message-body should be forwarded for DELETE method too.
from Florian Obser ok pyr@
-rw-r--r--usr.sbin/relayd/relay.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 695c7dd06eb..58d5f48795c 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.146 2012/04/11 08:25:26 deraadt Exp $ */
+/* $OpenBSD: relay.c,v 1.147 2012/04/27 14:01:35 giovanni Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -1372,7 +1372,8 @@ relay_read_http(struct bufferevent *bev, void *arg)
if (ret == PN_FAIL)
goto abort;
}
- } else if ((cre->method == HTTP_METHOD_POST ||
+ } else if ((cre->method == HTTP_METHOD_DELETE ||
+ cre->method == HTTP_METHOD_POST ||
cre->method == HTTP_METHOD_PUT ||
cre->method == HTTP_METHOD_RESPONSE) &&
strcasecmp("Content-Length", pk.key) == 0) {
@@ -1466,6 +1467,7 @@ relay_read_http(struct bufferevent *bev, void *arg)
/* Data stream */
bev->readcb = relay_read;
break;
+ case HTTP_METHOD_DELETE:
case HTTP_METHOD_POST:
case HTTP_METHOD_PUT:
case HTTP_METHOD_RESPONSE: