Skip to content

Commit

Permalink
fixed header name
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Feb 18, 2025
1 parent d3ed609 commit 99d01d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/imageProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const getUserBitmap = async (

const getToken = (req: Request): string | undefined => {
const cookieToken = req.cookies['feathers-jwt']
const bearerHeaderToken = (req.headers['authentication'] as string)?.replace?.(/^Bearer /, '')
const bearerHeaderToken = (req.headers['authorization'] as string)?.replace?.(/^Bearer /, '')
return cookieToken ?? bearerHeaderToken
}

Expand Down

0 comments on commit 99d01d4

Please sign in to comment.