From 2beaac96d3d46232ca14a0e3e52e45e16d8c772d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 28 Sep 2009 08:07:35 +0200 Subject: handle_connection: make logic clearer when deciding whether to use connect/ssl Michael --- src/reqs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3