Open raphael10-collab opened 1 year ago
Here: https://github.com/minbrowser/min/blob/master/main/download.js#L69 we have
responseHeaders[Object.keys(details.responseHeaders).filter(k => k.toLowerCase() === 'content-type')]
So.... : inside [ ] should be of index type
[ ]
index type
But:
Object.keys(details.responseHeaders).filter(k => k.toLowerCase() === 'content-type') is of type string[]
Object.keys(details.responseHeaders).filter(k => k.toLowerCase() === 'content-type')
string[]
Here: https://github.com/minbrowser/min/blob/master/main/download.js#L69 we have
So.... : inside
[ ]
should be ofindex type
But:
Object.keys(details.responseHeaders).filter(k => k.toLowerCase() === 'content-type')
is of typestring[]