Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/downstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,10 @@ downstream_connection_readcb(evbev_t * bev, void * arg) {

evbuffer_drain(evbuf, -1);

if (nread != avail) {
// For HEAD requests only, the 'nread' variable will be incorrect due to
// hooks exiting prematurely to avoid extra processing of body when not required
// This validation is skipped for this reason.
if(request->upstream_request->method != htp_method_HEAD && nread != avail){
/* the request processing was aborted at some point, so
* we mark it as an error
*/
Expand Down