mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 16:53:59 +00:00
WebServiceSettingsApi: updated BackupSettingsAsync() to use identifiable backup zip file name.
This commit is contained in:
@@ -1404,7 +1404,7 @@ namespace DnsServerCore
|
||||
|
||||
response.ContentType = "application/zip";
|
||||
response.ContentLength = backupZipStream.Length;
|
||||
response.Headers.ContentDisposition = "attachment;filename=DnsServerBackup.zip";
|
||||
response.Headers.ContentDisposition = "attachment;filename=" + _dnsWebService.DnsServer.ServerDomain + DateTime.UtcNow.ToString("_yyyy-MM-dd_HH-mm-ss") + "_backup.zip";
|
||||
|
||||
using (Stream output = response.Body)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user