From 5c9c220ee92279987a628c9b165f9b29c6c83c50 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 12 Aug 2022 08:40:25 +0000 Subject: [PATCH] Use break instead of return so that a HEAD request still consumes all data. OK op@ --- usr.sbin/httpd/server_fcgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/httpd/server_fcgi.c b/usr.sbin/httpd/server_fcgi.c index 4b2c2690f8e..e29ad9936d3 100644 --- a/usr.sbin/httpd/server_fcgi.c +++ b/usr.sbin/httpd/server_fcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_fcgi.c,v 1.92 2022/08/12 06:41:41 op Exp $ */ +/* $OpenBSD: server_fcgi.c,v 1.93 2022/08/12 08:40:25 claudio Exp $ */ /* * Copyright (c) 2014 Florian Obser @@ -584,7 +584,7 @@ server_fcgi_read(struct bufferevent *bev, void *arg) ((struct http_descriptor *) clt->clt_descreq)->http_method == HTTP_METHOD_HEAD) - return; + break; if (server_fcgi_writechunk(clt) == -1) { server_abort_http(clt, 500, "encoding error"); -- 2.20.1