Commit ac89ff3d authored by tom goriunov's avatar tom goriunov Committed by GitHub

NFT media is not displayed (#1340)

[skip ci] NFT media is not displayed

Fixes #1339
parent 11524381
...@@ -22,7 +22,7 @@ export default async function mediaTypeHandler(req: NextApiRequest, res: NextApi ...@@ -22,7 +22,7 @@ export default async function mediaTypeHandler(req: NextApiRequest, res: NextApi
return 'video'; return 'video';
} }
if (contentType === 'text/html') { if (contentType?.startsWith('text/html')) {
return 'html'; return 'html';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment