Update helper.js (#66)
This commit is contained in:
@@ -346,7 +346,7 @@ func DownloadClient(db store.IStore) echo.HandlerFunc {
|
||||
reader := strings.NewReader(config)
|
||||
|
||||
// set response header for downloading
|
||||
c.Response().Header().Set(echo.HeaderContentDisposition, "attachment; filename=wg0.conf")
|
||||
c.Response().Header().Set(echo.HeaderContentDisposition, fmt.Sprintf("attachment; filename=%s.conf", clientData.Client.Name))
|
||||
return c.Stream(http.StatusOK, "text/plain", reader)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user