aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 821aea3f..da2f5384 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -896,7 +896,9 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
896 /* Non-TLS connection do not hold any additional resources. */ 896 /* Non-TLS connection do not hold any additional resources. */
897 urh->clean_ready = MHD_YES; 897 urh->clean_ready = MHD_YES;
898 } 898 }
899#endif /* HTTPS_SUPPORT */ 899#else /* ! HTTPS_SUPPORT */
900 urh->clean_ready = MHD_YES;
901#endif /* ! HTTPS_SUPPORT */
900 connection->urh = urh; 902 connection->urh = urh;
901 /* As far as MHD's event loops are concerned, this connection is 903 /* As far as MHD's event loops are concerned, this connection is
902 suspended; it will be resumed once application is done by the 904 suspended; it will be resumed once application is done by the
@@ -909,8 +911,12 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
909 connection->client_context, 911 connection->client_context,
910 connection->read_buffer, 912 connection->read_buffer,
911 rbo, 913 rbo,
914#ifdef HTTPS_SUPPORT
912 (0 == (daemon->options & MHD_USE_TLS) ) ? 915 (0 == (daemon->options & MHD_USE_TLS) ) ?
913 connection->socket_fd : urh->app.socket, 916 connection->socket_fd : urh->app.socket,
917#else /* ! HTTPS_SUPPORT */
918 connection->socket_fd,
919#endif /* ! HTTPS_SUPPORT */
914 urh); 920 urh);
915 return MHD_YES; 921 return MHD_YES;
916} 922}