summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-28 08:07:35 +0200
committerMichael Adam <obnox@samba.org>2009-09-28 11:24:33 +0200
commit2beaac96d3d46232ca14a0e3e52e45e16d8c772d (patch)
tree64e2742afe8e54a0800f46c2bb19e822ac617125
parentf08f0218af63811dacfd81ee2aff5013674c71ec (diff)
downloadtinyproxy-2beaac96d3d46232ca14a0e3e52e45e16d8c772d.tar.gz
tinyproxy-2beaac96d3d46232ca14a0e3e52e45e16d8c772d.zip
handle_connection: make logic clearer when deciding whether to use connect/ssl
Michael
Diffstat (limited to '')
-rw-r--r--src/reqs.c2
1 files changed, 1 insertions, 1 deletions
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);