From 9bdfa825f3090d3005775df57a97e76caec4a454 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Sun, 22 Apr 2018 13:34:29 +0200 Subject: [PATCH] Fix homepage showing 'vv2.1.0' --- api/index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/index.go b/api/index.go index c6ef16b..0385aa2 100644 --- a/api/index.go +++ b/api/index.go @@ -5,11 +5,11 @@ import ( ) // Version is set by main and it is given to requests at / -var Version = "2.x" +var Version = "v2.DEV" func index(c *Context) { c.WriteHeader("Content-Type", "text/plain; charset=utf-8") - c.Write([]byte("CheeseGull v" + Version + " Woo\nFor more information: https://github.com/osuripple/cheesegull")) + c.Write([]byte("CheeseGull " + Version + " Woo\nFor more information: https://github.com/osuripple/cheesegull")) } var _evh = expvar.Handler() -- GitLab