refactor: update version name in header. (#188)

This commit is contained in:
Bo-Yi Wu 2017-02-21 14:15:14 +08:00 committed by GitHub
parent e726860ee4
commit c67af96a05
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}
}