Skip to content

Commit

Permalink
fix (#5710)
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 authored and syuilo committed Jan 18, 2020
1 parent ab1b0cc commit 26b193d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/file/send-drive-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default async function(ctx: Koa.Context) {
}

if (isThumbnail || isWebpublic) {
const [mime, ext] = await detectMine(InternalStorage.resolvePath(key));
const { mime, ext } = await detectType(InternalStorage.resolvePath(key));
const filename = rename(file.name, {
suffix: isThumbnail ? '-thumb' : '-web',
extname: ext ? `.${ext}` : undefined
Expand Down

0 comments on commit 26b193d

Please sign in to comment.