diff --git a/Apewer/Web/ApiOptions.cs b/Apewer/Web/ApiOptions.cs index 3e8b3ef..edcc445 100644 --- a/Apewer/Web/ApiOptions.cs +++ b/Apewer/Web/ApiOptions.cs @@ -94,8 +94,8 @@ namespace Apewer.Web public bool WithDuration { get; set; } = false; /// 允许响应中包含 Exception 对象的属性。 - /// 默认值:允许。 - public bool WithException { get; set; } = true; + /// 默认值:不允许。 + public bool WithException { get; set; } = false; /// 允许输出 Application 列表时包含模块名称。 /// 默认值:不包含。 @@ -131,7 +131,6 @@ namespace Apewer.Web /// 创建默认选项。 /// /// 在 Debug 模式中默认设置以下选项 - ///
JsonIndent = TRUE ///
WithException = TRUE ///
WithDuration = TRUE ///
WithParameters = TRUE @@ -144,7 +143,6 @@ namespace Apewer.Web [Conditional("DEBUG")] void Debug() { - JsonIndent = true; WithException = true; WithDuration = true; WithParameters = true;