Correct mimetype for client configuration file downloads

This commit is contained in:
Ioannis Dressos 2023-10-29 15:49:29 +02:00 committed by GitHub
parent 364d9b9c9a
commit 0bf6dae5cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -699,7 +699,7 @@ func DownloadClient(db store.IStore) echo.HandlerFunc {
// set response header for downloading
c.Response().Header().Set(echo.HeaderContentDisposition, fmt.Sprintf("attachment; filename=%s.conf", clientData.Client.Name))
return c.Stream(http.StatusOK, "text/plain", reader)
return c.Stream(http.StatusOK, "text/conf", reader)
}
}