summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reqs.c b/src/reqs.c
index f356e02..9675980 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -438,7 +438,7 @@ BAD_REQUEST_ERROR:
goto fail;
}
- connptr->connect_method = TRUE;
+ connptr->connect_method = CM_TRUE;
} else {
#ifdef TRANSPARENT_PROXY
if (!do_transparent_proxy
@@ -1700,7 +1700,7 @@ void handle_connection (int fd)
connptr->server_fd);
if(hashmap_search(hashofheaders, "upgrade") > 0) {
- connptr->connect_method = TRUE;
+ connptr->connect_method = CM_UPGRADE;
safe_write (connptr->server_fd, lines, lines_len);
}
@@ -1718,6 +1718,8 @@ void handle_connection (int fd)
update_stats (STAT_BADCONN);
goto fail;
}
+ } else if (connptr->connect_method == CM_UPGRADE) {
+ /* NOP */ ;
} else {
if (send_ssl_response (connptr) < 0) {
log_message (LOG_ERR,