We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4126488 commit fc932ebCopy full SHA for fc932eb
1 file changed
middleware.go
@@ -15,8 +15,6 @@ import (
15
const (
16
customAttributesCtxKey = "slog-gin.custom-attributes"
17
requestIDCtx = "slog-gin.request-id"
18
- // Formatted with http.CanonicalHeaderKey
19
- requestIDHeaderKey = "X-Request-Id"
20
)
21
22
var (
@@ -34,6 +32,9 @@ var (
34
32
HiddenResponseHeaders = map[string]struct{}{
35
33
"set-cookie": {},
36
}
+
+ // Formatted with http.CanonicalHeaderKey
37
+ RequestIDHeaderKey = "X-Request-Id"
38
39
40
type Config struct {
0 commit comments