From c67af96a0567177dc343d38e06dfe7f5c75c4567 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 21 Feb 2017 14:15:14 +0800 Subject: [PATCH] refactor: update version name in header. (#188) --- gorush/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gorush/version.go b/gorush/version.go index 58c3ab0..cc85ea4 100644 --- a/gorush/version.go +++ b/gorush/version.go @@ -32,7 +32,7 @@ func PrintGoRushVersion() { func VersionMiddleware() gin.HandlerFunc { // Set out header value for each response return func(c *gin.Context) { - c.Writer.Header().Set("Server-Version", "GoRush/"+version) + c.Header("X-DRONE-VERSION", version) c.Next() } }