Skip to content

Commit c621277

Browse files
committed
docs: correct debug middleware comment grammar
1 parent 656028c commit c621277

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/debugmiddleware/debug_middleware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type (
1717

1818
const 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.
2222
var 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.
7070
func (m *RequestLogger) redactRequest(req *http.Request) (*http.Request, error) {
7171
redactedHeaders := m.redactHeaders(req.Header)
7272

0 commit comments

Comments
 (0)