File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818const redactedPlaceholder = "<REDACTED>"
1919
20- // Headers known to contain sensitive information like an API key. Note that this exclude `Authorization`,
20+ // Headers known to contain sensitive information like an API key. Note that this excludes `Authorization`,
2121// which is handled specially in `redactHeaders` below.
2222var sensitiveHeaders = []string {
2323 "api-key" ,
@@ -66,7 +66,7 @@ func (m *RequestLogger) Middleware() Middleware {
6666// redactRequest redacts sensitive information from the request for logging
6767// purposes. If redaction is necessary, the request is cloned before mutating
6868// the original and that clone is returned. As a small optimization, the
69- // original is request is returned unchanged if no redaction is necessary.
69+ // the original request is returned unchanged if no redaction is necessary.
7070func (m * RequestLogger ) redactRequest (req * http.Request ) (* http.Request , error ) {
7171 redactedHeaders := m .redactHeaders (req .Header )
7272
You can’t perform that action at this time.
0 commit comments