mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 13:01:23 +01:00
fix filename processing to support both URI and URL
Signed-off-by: antbreton <antoine.breton06@gmail.com>
This commit is contained in:
parent
38e0910fc7
commit
db2a6fb970
@ -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