mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
Merge pull request #15680 from antbreton/fix/15679
fix filename processing to support both URI and URL
This commit is contained in:
commit
dc8477bd7a
@ -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
|
||||
};
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user