Skip to content

Commit f4a88f5

Browse files
authored
fix: socket closed error in firefox (#367) (#368)
1 parent 3f22d78 commit f4a88f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swiftwave_service/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func StartServer(config *system_config.Config, manager *core.ServiceManager, wor
106106
if strings.HasPrefix(c.Request().URL.Path, "/graphql") &&
107107
strings.Compare(c.Request().Method, http.MethodGet) == 0 &&
108108
strings.Compare(c.Request().URL.RawQuery, "") == 0 &&
109-
strings.Compare(c.Request().Header.Get("Connection"), "Upgrade") == 0 &&
109+
strings.Contains(c.Request().Header.Get("Connection"), "Upgrade") &&
110110
strings.Compare(c.Request().Header.Get("Upgrade"), "websocket") == 0 {
111111
return true
112112
}

0 commit comments

Comments
 (0)