Skip to content

Commit

Permalink
[skip ci] NFT media is not displayed
Browse files Browse the repository at this point in the history
Fixes #1339
  • Loading branch information
tom2drum committed Nov 8, 2023
1 parent 7eba3e1 commit bcf49e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/media-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async function mediaTypeHandler(req: NextApiRequest, res: NextApi
return 'video';
}

if (contentType === 'text/html') {
if (contentType?.startsWith('text/html')) {
return 'html';
}

Expand Down

0 comments on commit bcf49e3

Please sign in to comment.