From 123b86d1e4790d9717eff7c0502313f0fdb1c018 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Sep 2020 22:36:17 +0200 Subject: correct interpretation of revalue of MHD_socket_cork_ --- src/microhttpd/response.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/microhttpd/response.c') diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 9a21925a..27386046 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c @@ -904,7 +904,7 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh, else #endif { - if (0 == + if (0 != MHD_socket_cork_ (connection->socket_fd, true)) { @@ -930,7 +930,9 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh, else #endif { - if (0 == + if (! connection->sk_cork_on) + return MHD_YES; + if (0 != MHD_socket_cork_ (connection->socket_fd, false)) { -- cgit v1.2.3