We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
auditLogInfo.HttpMethod
GET/Head
1 parent 6385219 commit c342dd0Copy full SHA for c342dd0
framework/src/Volo.Abp.Auditing/Volo/Abp/Auditing/AuditingInterceptor.cs
@@ -191,7 +191,9 @@ private async Task<bool> ShouldWriteAuditLogAsync(
191
}
192
193
if (!options.IsEnabledForGetRequests &&
194
- invocation.Method.Name.StartsWith("Get", StringComparison.OrdinalIgnoreCase))
+ (string.Equals(auditLogInfo.HttpMethod, "Get", StringComparison.OrdinalIgnoreCase) ||
195
+ string.Equals(auditLogInfo.HttpMethod, "Head", StringComparison.OrdinalIgnoreCase) ||
196
+ invocation.Method.Name.StartsWith("Get", StringComparison.OrdinalIgnoreCase)))
197
{
198
return false;
199
0 commit comments