@interopio/gateway-server 0.5.1-beta → 0.5.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # Change Log
4
4
 
5
+ ## 0.5.2-beta (2025-07-15)
6
+
7
+ ### Fixed
8
+
9
+ - upgrade request detection
10
+
5
11
  ## 0.5.1-beta (2025-07-15)
6
12
 
7
13
  ### Changed
package/dist/index.cjs CHANGED
@@ -2534,7 +2534,7 @@ function createListener(storage, middleware, routes3, onSocketError) {
2534
2534
  }
2535
2535
  });
2536
2536
  if (route) {
2537
- if (request.method === "GET" && request.headers.one("connection") === "Upgrade" && request.headers.one("upgrade")?.toLowerCase() === "websocket") {
2537
+ if (request.method === "GET" && request._req["upgrade"] && request.headers.one("upgrade")?.toLowerCase() === "websocket") {
2538
2538
  const socket = request.socket;
2539
2539
  const host = request.host;
2540
2540
  const info = socketKey(request._req.socket);