Skip to content
Snippets Groups Projects
Commit 6446b489 authored by Billy Griffiths's avatar Billy Griffiths
Browse files

ADHOC - Add x-bobgroup-type header checking for outgoing API Logs

parent 462d9319
No related branches found
No related tags found
No related merge requests found
......@@ -125,8 +125,11 @@ func GenerateOutgoingAPILog(startTime time.Time, requestID *string, claim map[st
}
typeString := "api-outgoing"
if funk.Contains(method, "webhook") {
for k, v := range requestHeaders {
if strings.ToLower(k) == "x-bobgroup-type" && strings.ToLower(v) == "webhook" {
typeString = "webhook-outgoing"
break
}
}
apiLog := ApiLog{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment