WebServiceSettingsApi: updated BackupSettingsAsync() to use identifiable backup zip file name.

This commit is contained in:
Shreyas Zare
2023-06-25 19:12:41 +05:30
parent 5bb15e6f6f
commit dff5d40fca

View File

@@ -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)
{