Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fed5aa1599 |
2
.github/workflows/cross-compile.yaml
vendored
2
.github/workflows/cross-compile.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ 1.20.x ]
|
||||
go-version: [ 1.19.x, 1.20.x ]
|
||||
os: [ ubuntu-latest ]
|
||||
steps:
|
||||
- name: Check out code
|
||||
|
||||
@@ -741,7 +741,7 @@ func getMultipleFilesDownloadResponse(session *models.Principal, params objectAp
|
||||
defer resp.Close()
|
||||
|
||||
// indicate it's a download / inline content to the browser, and the size of the object
|
||||
fileName := "selected_files_" + time.Now().UTC().Format(time.DateTime)
|
||||
fileName := "selected_files_" + strings.ReplaceAll(strings.ReplaceAll(time.Now().UTC().Format(time.RFC3339), ":", ""), "-", "")
|
||||
|
||||
rw.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s.zip\"", fileName))
|
||||
rw.Header().Set("Content-Type", "application/zip")
|
||||
|
||||
Reference in New Issue
Block a user