handle_connection: make logic clearer when deciding whether to use connect/ssl

Michael
This commit is contained in:
Michael Adam 2009-09-28 08:07:35 +02:00
parent f08f0218af
commit 2beaac96d3

View File

@ -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);