diff --git a/backend/pkg/commons/version/version.go b/backend/pkg/commons/version/version.go index 3d51e4345..33ffaf31e 100644 --- a/backend/pkg/commons/version/version.go +++ b/backend/pkg/commons/version/version.go @@ -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) }) }