implements Stringer for store and remotes

This commit is contained in:
Brad Rydzewski
2015-10-27 16:48:05 -07:00
parent fc02d38b4a
commit 4a0deff5a5
7 changed files with 35 additions and 15 deletions

View File

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