diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 4677fa7a..bd8af585 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3178,6 +3178,7 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
3178 | ( (MHD_CONNECTION_HEADERS_PROCESSED != connection->state) && | 3178 | ( (MHD_CONNECTION_HEADERS_PROCESSED != connection->state) && |
3179 | (MHD_CONNECTION_FOOTERS_RECEIVED != connection->state) ) ) | 3179 | (MHD_CONNECTION_FOOTERS_RECEIVED != connection->state) ) ) |
3180 | return MHD_NO; | 3180 | return MHD_NO; |
3181 | daemon = connection->daemon; | ||
3181 | if ( (MHD_HTTP_SWITCHING_PROTOCOLS != status_code) && | 3182 | if ( (MHD_HTTP_SWITCHING_PROTOCOLS != status_code) && |
3182 | (NULL != response->upgrade_handler) ) | 3183 | (NULL != response->upgrade_handler) ) |
3183 | { | 3184 | { |
@@ -3187,7 +3188,6 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
3187 | #endif | 3188 | #endif |
3188 | return MHD_NO; | 3189 | return MHD_NO; |
3189 | } | 3190 | } |
3190 | daemon = connection->daemon; | ||
3191 | if ( (NULL != response->upgrade_handler) && | 3191 | if ( (NULL != response->upgrade_handler) && |
3192 | (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && | 3192 | (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && |
3193 | (0 == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) | 3193 | (0 == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) |