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.
2 parents 54a201f + cf41368 commit 8a651c0Copy full SHA for 8a651c0
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