summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-09-18 12:22:57 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-09-18 12:22:57 -0400
commit5a436fd447753124b3f7705ecb123ecf5762bc24 (patch)
treed0b37402b2eead725bf0e3d1de37727f64c01315 /api
parent7caef4a7a7287433ed274c4f20d3593ea4065b66 (diff)
parentc63da249640e50b1c93c5c5ff7b5d598aa737b1e (diff)
downloadchat-5a436fd447753124b3f7705ecb123ecf5762bc24.tar.gz
chat-5a436fd447753124b3f7705ecb123ecf5762bc24.tar.bz2
chat-5a436fd447753124b3f7705ecb123ecf5762bc24.zip
Merge pull request #699 from mattermost/PLT-92
PLT-92 Adding server side versioning to the binary
Diffstat (limited to 'api')
-rw-r--r--api/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/context.go b/api/context.go
index 5925c817f..02716bb33 100644
--- a/api/context.go
+++ b/api/context.go
@@ -125,7 +125,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
c.setSiteURL(protocol + "://" + r.Host)
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
- w.Header().Set(model.HEADER_VERSION_ID, utils.Cfg.ServiceSettings.Version+fmt.Sprintf(".%v", utils.CfgLastModified))
+ w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgLastModified))
// Instruct the browser not to display us in an iframe for anti-clickjacking
if !h.isApi {