aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-09-27 22:36:17 +0200
committerChristian Grothoff <christian@grothoff.org>2020-09-27 22:36:17 +0200
commit123b86d1e4790d9717eff7c0502313f0fdb1c018 (patch)
treeb990e4f892a0208f940bdfaf33e5dfe49e3c0ebd /src/microhttpd/response.c
parentbeb7fa828c59c31d4a5178b82121435f2069b181 (diff)
downloadlibmicrohttpd-123b86d1e4790d9717eff7c0502313f0fdb1c018.tar.gz
libmicrohttpd-123b86d1e4790d9717eff7c0502313f0fdb1c018.zip
correct interpretation of revalue of MHD_socket_cork_
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c6
1 files changed, 4 insertions, 2 deletions
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,
904 else 904 else
905#endif 905#endif
906 { 906 {
907 if (0 == 907 if (0 !=
908 MHD_socket_cork_ (connection->socket_fd, 908 MHD_socket_cork_ (connection->socket_fd,
909 true)) 909 true))
910 { 910 {
@@ -930,7 +930,9 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
930 else 930 else
931#endif 931#endif
932 { 932 {
933 if (0 == 933 if (! connection->sk_cork_on)
934 return MHD_YES;
935 if (0 !=
934 MHD_socket_cork_ (connection->socket_fd, 936 MHD_socket_cork_ (connection->socket_fd,
935 false)) 937 false))
936 { 938 {