diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2021-03-24 20:59:55 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2021-03-24 20:59:55 +0000 |
commit | 084ce2367806d4666375adbdd04db5eb762866cf (patch) | |
tree | 6d6d86508cfff38ffa1b12346d7f2b8d63b6ec0a /usr.sbin/relayd/relay.c | |
parent | 06e7e5ac2f9fd9b8895c46837451b2bde4782236 (diff) |
Responses to HEAD requests must not have a message body (even though they have
a Content-Length header). HTTP RFC 7231 section 4.3.2.
found by niklas@, claudio@ agrees.
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r-- | usr.sbin/relayd/relay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 02324f516c2..da4a1aa0cc1 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.253 2021/01/27 20:33:05 eric Exp $ */ +/* $OpenBSD: relay.c,v 1.254 2021/03/24 20:59:53 benno Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -800,7 +800,7 @@ relay_input(struct rsession *con) switch (rlay->rl_proto->type) { case RELAY_PROTO_HTTP: - if (relay_httpdesc_init(&con->se_in) == -1) { + if (relay_http_priv_init(con) == -1) { relay_close(con, "failed to allocate http descriptor", 1); return; |