Merge pull request #15680 from antbreton/fix/15679

fix filename processing to support both URI and URL
This commit is contained in:
Wenkai Yin(尹文开) 2021-10-11 17:18:23 +08:00 committed by GitHub
commit dc8477bd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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