diff --git a/src/reqs.c b/src/reqs.c index a310b91..5bbdd56 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1674,7 +1674,7 @@ send_error: return; } - if (!connptr->connect_method || (connptr->upstream_proxy != NULL)) { + if (!(connptr->connect_method && (connptr->upstream_proxy == NULL))) { if (process_server_headers (connptr) < 0) { if (connptr->error_variables) send_http_error_message (connptr);