Fix additional http method resolution

This commit is contained in:
Christian Schaible 2024-09-09 15:49:55 +02:00
parent 959d7a642c
commit be23f50c5a

View file

@ -24,6 +24,8 @@ func StringToHttpMethod(method string) auditV1.AttributeContext_HttpMethod {
return auditV1.AttributeContext_HTTP_METHOD_TRACE
case "PATCH":
return auditV1.AttributeContext_HTTP_METHOD_PATCH
case "OTHER":
return auditV1.AttributeContext_HTTP_METHOD_OTHER
default:
return auditV1.AttributeContext_HTTP_METHOD_UNSPECIFIED
}