Skip to content

Commit

Permalink
fix(api): fix version-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Nov 20, 2024
1 parent a6e286a commit ed62345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/commons/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (

func HttpMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
r.Header.Set("X-Beaconchain-Version", Version)
w.Header().Set("X-Beaconchain-Version", Version)
next.ServeHTTP(w, r)
})
}

0 comments on commit ed62345

Please sign in to comment.