Skip to content

Commit

Permalink
Fix missing version (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrowski authored Jun 19, 2024
1 parent 5262169 commit 85ebe36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zap/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (w *Logger) EchoMiddleware(l logi.WLogger) echo.MiddlewareFunc {
key.Path, req.URL.Path,
key.Status, res.Status,
key.UserAgent, req.UserAgent(),
key.APIVersion, res.Header().Get("API-Version"),
key.ExtensionVersion, res.Header().Get("Extension-Version"),
key.APIVersion, req.Header.Get("API-Version"),
key.ExtensionVersion, req.Header.Get("Extension-Version"),
}

if correlationID, isOk := req.Context().Value(key.CtxCorrelationID).(string); isOk && correlationID != "" {
Expand Down

0 comments on commit 85ebe36

Please sign in to comment.