Skip to content

Commit

Permalink
set default value for contentLenght if not received from provider (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfazakas authored Feb 10, 2021
1 parent 53d984a commit 3e2ad96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function fileinfo(
const { contentLength, contentType } = response.data[0]

return {
contentLength,
contentLength: contentLength || '',
contentType: contentType || '', // need to do that cause lib-js File interface requires contentType
url
}
Expand Down

1 comment on commit 3e2ad96

@vercel
Copy link

@vercel vercel bot commented on 3e2ad96 Feb 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.