c.req.headers.get --> c.req.header, hono deprecation

This commit is contained in:
Alex Gleason
2023-11-20 12:39:20 -06:00
parent bedc8fdf91
commit c1bf326981
4 changed files with 5 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ function prepareFilters(filters: ClientREQ[2][]): Filter[] {
}
const relayController: AppController = (c) => {
const upgrade = c.req.headers.get('upgrade');
const upgrade = c.req.header('upgrade');
if (upgrade?.toLowerCase() !== 'websocket') {
return c.text('Please use a Nostr client to connect.', 400);