WebServiceAppsApi: updated SetAppConfigAsync() to log config saved message and throw new error when post parameter is missing.

This commit is contained in:
Shreyas Zare
2021-09-19 18:50:06 +05:30
parent ba4baf70c8
commit 179d3c3e52

View File

@@ -565,9 +565,13 @@ namespace DnsServerCore
config = null;
await application.SetConfigAsync(config);
break;
_dnsWebService.Log.Write(DnsWebService.GetRequestRemoteEndPoint(request), "[" + _dnsWebService.GetSession(request).Username + "] DNS application '" + name + "' app config was saved successfully.");
return;
}
}
throw new DnsWebServiceException("Missing POST parameter: config");
}
#endregion