diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-18 09:25:47 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-18 09:25:47 -0700 |
commit | cdf813f07b207c14bb9fa03f38d734b45e40823e (patch) | |
tree | 109c6cefb3580b9ed9b314ce40bd130728d587ff /api | |
parent | 1aa4913c44ba9a342d240e5e1ca9d5e89929e499 (diff) | |
parent | 5a436fd447753124b3f7705ecb123ecf5762bc24 (diff) | |
download | chat-cdf813f07b207c14bb9fa03f38d734b45e40823e.tar.gz chat-cdf813f07b207c14bb9fa03f38d734b45e40823e.tar.bz2 chat-cdf813f07b207c14bb9fa03f38d734b45e40823e.zip |
merging
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 { |