Skip to content

Commit 9e25c98

Browse files
committed
chore: add support for X-Audit-Log-Reason header
Signed-off-by: Keith Russo <[email protected]>
1 parent a46093f commit 9e25c98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/rest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ func (r *RateLimiter) lockedRequest(method, route, contentType string, b interfa
108108
req.Header.Set("Content-Type", contentType)
109109
}
110110

111+
if reason != nil {
112+
req.Header.Set("X-Audit-Log-Reason", *reason)
113+
}
114+
111115
req.Header.Set("User-Agent", UserAgent)
112116

113117
ctx, cancel := context.WithDeadline(req.Context(), time.Now().Add(5*time.Second))

0 commit comments

Comments
 (0)