summaryrefslogtreecommitdiffstats
path: root/internal/nostr/bech32_test.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-13 21:31:09 -0800
committerbndw <ben@bdw.to>2026-02-13 21:31:09 -0800
commit1527a7313ca46cd646737fb05c33908fba034df9 (patch)
treef250effb887aaa7e85a68af59e155066d66f3e33 /internal/nostr/bech32_test.go
parentf59a1c7ad8c571f1eaaf148941741cd4026a519f (diff)
fix: allow WebSocket upgrades to bypass HTML index
WebSocket connections start as GET requests with 'Upgrade: websocket' header. The handler was serving HTML for ALL GET requests, preventing WebSocket upgrades from ever happening. Fix by checking for Upgrade header and only serving HTML/NIP-11 for non-WebSocket GET requests. Now WebSocket connections return status 101 (Switching Protocols) instead of 200 (OK).
Diffstat (limited to 'internal/nostr/bech32_test.go')
0 files changed, 0 insertions, 0 deletions