mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-23 08:01:36 +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',
|
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
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user