diff options
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 3 |
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, struct MHD_UpgradeResponseHandle *urh; size_t rbo; + if (0 == (daemon->options & MHD_ALLOW_UPGRADE)) + return MHD_NO; + if (NULL == MHD_get_response_header (response, MHD_HTTP_HEADER_UPGRADE)) |