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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index db77dc6d..364acc15 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -691,6 +691,9 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
691 struct MHD_UpgradeResponseHandle *urh; 691 struct MHD_UpgradeResponseHandle *urh;
692 size_t rbo; 692 size_t rbo;
693 693
694 if (0 == (daemon->options & MHD_ALLOW_UPGRADE))
695 return MHD_NO;
696
694 if (NULL == 697 if (NULL ==
695 MHD_get_response_header (response, 698 MHD_get_response_header (response,
696 MHD_HTTP_HEADER_UPGRADE)) 699 MHD_HTTP_HEADER_UPGRADE))