mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-17 08:35:18 +08:00
优化代码
This commit is contained in:
@@ -36,5 +36,5 @@ func (this *DownloadKeyAction) RunGet(params struct {
|
||||
}
|
||||
|
||||
this.AddHeader("Content-Disposition", "attachment; filename=\"key-"+strconv.FormatInt(params.CertId, 10)+".pem\";")
|
||||
this.Write(certConfig.KeyData)
|
||||
_, _ = this.Write(certConfig.KeyData)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user