changeset 143:276bb3555034

Should work now.
author June Park <parkjune1995@gmail.com>
date Fri, 09 Jan 2026 13:13:27 -0800
parents 893d87124d16
children 043018c0f2f8
files mrjunejune/src/talk/index.html seobeo/s_websocket_server.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mrjunejune/src/talk/index.html	Fri Jan 09 13:09:52 2026 -0800
+++ b/mrjunejune/src/talk/index.html	Fri Jan 09 13:13:27 2026 -0800
@@ -25,7 +25,7 @@
   <script>
     const host = window.location.hostname;
     const port = '6969';
-    const url = host === "mrjunejune.com" ? `ws://${host}/echo` : `ws://${host}:${port}/echo`;
+    const url = host === "mrjunejune.com" ? `wss://${host}/echo` : `ws://${host}:${port}/echo`;
     const ws = new WebSocket(url);
     const messagesDiv = document.getElementById('messages');
 
--- a/seobeo/s_websocket_server.c	Fri Jan 09 13:09:52 2026 -0800
+++ b/seobeo/s_websocket_server.c	Fri Jan 09 13:13:27 2026 -0800
@@ -76,7 +76,7 @@
     return FALSE;
 
   const char *connection_value = ((Seobeo_Request_Entry*)p_connection_kv)->value;
-  if (!strstr(connection_value, "Upgrade"))
+  if (!strcasestr(connection_value, "upgrade"))
     return FALSE;
 
   void *p_key_kv = Dowa_HashMap_Get_Ptr(p_req_map, "Sec-WebSocket-Key");