mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 19:48:21 +00:00
implements Stringer for store and remotes
This commit is contained in:
@@ -53,6 +53,7 @@ func Secure(c *gin.Context) {
|
||||
// for debugging and troubleshooting.
|
||||
func Version(version string) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.Set("version", "0.4.0-beta+"+version)
|
||||
c.Header("X-DRONE-VERSION", "0.4.0-beta+"+version)
|
||||
c.Next()
|
||||
}
|
||||
|
Reference in New Issue
Block a user