📦 Change requestId -> requestid

pull/948/head
Tom 2020-10-22 10:00:06 +01:00
parent c5792a3953
commit 7eaf3c07b1
No known key found for this signature in database
GPG Key ID: D3E7EAA31B39637E
2 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ type Config struct {
// ContextKey defines the key used when storing the request ID in
// the locals for a specific request.
//
// Optional. Default: requestId
// Optional. Default: requestid
ContextKey string
}
```
@ -71,6 +71,6 @@ var ConfigDefault = Config{
Generator: func() string {
return utils.UUID()
},
ContextKey: "requestId"
ContextKey: "requestid"
}
```

View File

@ -25,7 +25,7 @@ type Config struct {
// ContextKey defines the key used when storing the request ID in
// the locals for a specific request.
//
// Optional. Default: requestId
// Optional. Default: requestid
ContextKey string
}
@ -34,7 +34,7 @@ var ConfigDefault = Config{
Next: nil,
Header: fiber.HeaderXRequestID,
Generator: utils.UUID,
ContextKey: "requestId",
ContextKey: "requestid",
}
// New creates a new middleware handler