mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 07:27:59 -08:00
Fix regression introduced in previous causing HEAD requests to be
erroneously rejected as malformed. ok chrisz@
This commit is contained in:
parent
387303bbbb
commit
79db477be4
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: relay_http.c,v 1.89 2024/07/19 04:26:23 chrisz Exp $ */
|
||||
/* $OpenBSD: relay_http.c,v 1.90 2024/07/20 06:54:15 anton Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 - 2016 Reyk Floeter <reyk@openbsd.org>
|
||||
@ -435,6 +435,10 @@ relay_read_http(struct bufferevent *bev, void *arg)
|
||||
kv_delete(&desc->http_headers,
|
||||
desc->http_lastheader);
|
||||
break;
|
||||
case HTTP_METHOD_RESPONSE:
|
||||
if (request_method == HTTP_METHOD_HEAD)
|
||||
break;
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
/*
|
||||
* Need to read data from the client
|
||||
|
Loading…
Reference in New Issue
Block a user