Browse Source
Merge pull request #21465 from abpframework/auto-merge/rel-9-0/3242
Merge branch dev with rel-9.0
pull/21484/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
framework/src/Volo.Abp.Auditing/Volo/Abp/Auditing/AuditingInterceptor.cs
|
|
|
@ -191,7 +191,9 @@ public class AuditingInterceptor : AbpInterceptor, ITransientDependency |
|
|
|
} |
|
|
|
|
|
|
|
if (!options.IsEnabledForGetRequests && |
|
|
|
invocation.Method.Name.StartsWith("Get", StringComparison.OrdinalIgnoreCase)) |
|
|
|
(string.Equals(auditLogInfo.HttpMethod, "Get", StringComparison.OrdinalIgnoreCase) || |
|
|
|
string.Equals(auditLogInfo.HttpMethod, "Head", StringComparison.OrdinalIgnoreCase) || |
|
|
|
invocation.Method.Name.StartsWith("Get", StringComparison.OrdinalIgnoreCase))) |
|
|
|
{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
|