fix filename processing to support both URI and URL

Signed-off-by: antbreton <antoine.breton06@gmail.com>
This commit is contained in:
antbreton 2021-09-27 16:13:21 +02:00
parent 38e0910fc7
commit db2a6fb970

View File

@ -177,8 +177,9 @@ export class HelmChartDefaultService extends HelmChartService {
responseType: 'blob',
})
.pipe(map(response => {
let parts = filename.split('/')
return {
filename: filename.split('/')[1],
filename: parts[parts.length-1],
data: response
};
}))