diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-16 17:37:11 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-16 17:37:11 -0700 |
commit | cef7a1aae4205ebf4fbd8958f1f870ff69759edf (patch) | |
tree | a3bbd45979a89f9a4030f750b1a30099d7e565b9 /api/context.go | |
parent | e644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff) | |
download | chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.gz chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.bz2 chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.zip |
PLT-92 Adding server side versioning to the binary
Diffstat (limited to 'api/context.go')
-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 b1b4d2d10..b896ca7b1 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.GetFullVersion(), utils.CfgLastModified)) // Instruct the browser not to display us in an iframe for anti-clickjacking if !h.isApi { |