chore: generate

This commit is contained in:
opencode-agent[bot]
2026-04-29 20:52:19 +00:00
parent 9db5890ce5
commit 1124ae17b4
5 changed files with 37 additions and 23 deletions

View File

@@ -30,9 +30,7 @@ export function headers(input: Request | HeadersInit | Record<string, string>, e
}
export function websocketProtocols(input: Request | Record<string, string | undefined>) {
const value = input instanceof Request
? input.headers.get("sec-websocket-protocol")
: input["sec-websocket-protocol"]
const value = input instanceof Request ? input.headers.get("sec-websocket-protocol") : input["sec-websocket-protocol"]
if (!value) return []
return value
.split(",")