aboutsummaryrefslogtreecommitdiff
path: root/src/examples/websocket_threaded_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/websocket_threaded_example.c')
-rw-r--r--src/examples/websocket_threaded_example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/websocket_threaded_example.c b/src/examples/websocket_threaded_example.c
index 3a232b41..3f94cbd8 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -420,9 +420,9 @@ is_websocket_request (struct MHD_Connection *con, const char *upg_header,
420 420
421 (void) con; /* Unused. Silent compiler warning. */ 421 (void) con; /* Unused. Silent compiler warning. */
422 422
423 return (upg_header != NULL) && (con_header != NULL) 423 return ((upg_header != NULL) && (con_header != NULL)
424 && (0 == strcmp (upg_header, WS_UPGRADE_VALUE)) 424 && (0 == strcmp (upg_header, WS_UPGRADE_VALUE))
425 && (NULL != strstr (con_header, "Upgrade")) 425 && (NULL != strstr (con_header, "Upgrade")))
426 ? MHD_YES 426 ? MHD_YES
427 : MHD_NO; 427 : MHD_NO;
428} 428}