summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-08-12 08:40:26 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-08-12 08:40:26 +0000
commite623be4b81335c3cb4972a23bba6fb365685ae80 (patch)
tree58443a840f7ab125393d037d1665dc895c252ba7 /usr.sbin/httpd
parent466c726e902c6dc6b448ab898d1087f73499f786 (diff)
Use break instead of return so that a HEAD request still consumes all data.
OK op@
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r--usr.sbin/httpd/server_fcgi.c4
1 files 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 <florian@openbsd.org>
@@ -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");