mirror of
https://dev.azure.com/schwarzit/schwarzit.stackit-public/_git/audit-go
synced 2026-02-19 06:01:48 +00:00
Fix additional http method resolution
This commit is contained in:
parent
959d7a642c
commit
be23f50c5a
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ func StringToHttpMethod(method string) auditV1.AttributeContext_HttpMethod {
|
||||||
return auditV1.AttributeContext_HTTP_METHOD_TRACE
|
return auditV1.AttributeContext_HTTP_METHOD_TRACE
|
||||||
case "PATCH":
|
case "PATCH":
|
||||||
return auditV1.AttributeContext_HTTP_METHOD_PATCH
|
return auditV1.AttributeContext_HTTP_METHOD_PATCH
|
||||||
|
case "OTHER":
|
||||||
|
return auditV1.AttributeContext_HTTP_METHOD_OTHER
|
||||||
default:
|
default:
|
||||||
return auditV1.AttributeContext_HTTP_METHOD_UNSPECIFIED
|
return auditV1.AttributeContext_HTTP_METHOD_UNSPECIFIED
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue