refactor: update version name in header. (#188)
This commit is contained in:
parent
e726860ee4
commit
c67af96a05
|
@ -32,7 +32,7 @@ func PrintGoRushVersion() {
|
||||||
func VersionMiddleware() gin.HandlerFunc {
|
func VersionMiddleware() gin.HandlerFunc {
|
||||||
// Set out header value for each response
|
// Set out header value for each response
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
c.Writer.Header().Set("Server-Version", "GoRush/"+version)
|
c.Header("X-DRONE-VERSION", version)
|
||||||
c.Next()
|
c.Next()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue