Skip to content

Commit 8a651c0

Browse files
authored
Merge pull request #21465 from abpframework/auto-merge/rel-9-0/3242
Merge branch dev with rel-9.0
2 parents 54a201f + cf41368 commit 8a651c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

framework/src/Volo.Abp.Auditing/Volo/Abp/Auditing/AuditingInterceptor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ private async Task<bool> ShouldWriteAuditLogAsync(
191191
}
192192

193193
if (!options.IsEnabledForGetRequests &&
194-
invocation.Method.Name.StartsWith("Get", StringComparison.OrdinalIgnoreCase))
194+
(string.Equals(auditLogInfo.HttpMethod, "Get", StringComparison.OrdinalIgnoreCase) ||
195+
string.Equals(auditLogInfo.HttpMethod, "Head", StringComparison.OrdinalIgnoreCase) ||
196+
invocation.Method.Name.StartsWith("Get", StringComparison.OrdinalIgnoreCase)))
195197
{
196198
return false;
197199
}

0 commit comments

Comments
 (0)