1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

set default value for contentLenght if not received from provider (#372)

This commit is contained in:
Bogdan Fazakas 2021-02-10 15:24:16 +02:00 committed by GitHub
parent 53d984a3b6
commit 3e2ad9674c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}