From 084ce2367806d4666375adbdd04db5eb762866cf Mon Sep 17 00:00:00 2001 From: Sebastian Benoit Date: Wed, 24 Mar 2021 20:59:55 +0000 Subject: 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. --- usr.sbin/relayd/relay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/relayd/relay.c') 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 @@ -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; -- cgit v1.2.3