diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-09-18 12:22:57 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-09-18 12:22:57 -0400 |
commit | 5a436fd447753124b3f7705ecb123ecf5762bc24 (patch) | |
tree | d0b37402b2eead725bf0e3d1de37727f64c01315 /api | |
parent | 7caef4a7a7287433ed274c4f20d3593ea4065b66 (diff) | |
parent | c63da249640e50b1c93c5c5ff7b5d598aa737b1e (diff) | |
download | chat-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.go | 2 |
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 { |