diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-22 13:01:08 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-22 13:01:08 -0600 |
commit | 336f0389deaca58ed4d45d96affa95f40666455f (patch) | |
tree | 6374d01679aa4fd095fe25c79d8b277589f18976 /web/templates/head.html | |
parent | ea6774b2d92712bf4e39eeaf3bcd0a272bb1493a (diff) | |
parent | 847754b3d76924a0aa43776bd1e8ae11b56c651b (diff) | |
download | chat-336f0389deaca58ed4d45d96affa95f40666455f.tar.gz chat-336f0389deaca58ed4d45d96affa95f40666455f.tar.bz2 chat-336f0389deaca58ed4d45d96affa95f40666455f.zip |
Merge pull request #1958 from mattermost/PLT-7-client-cookie
Plt 7 client cookie
Diffstat (limited to 'web/templates/head.html')
-rw-r--r-- | web/templates/head.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index 03dbff331..4060d2410 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -75,7 +75,16 @@ if ({{.SessionTokenIndex}} >= 0) { window.mm_session_token_index = {{.SessionTokenIndex}}; $.ajaxSetup({ - headers: { 'X-MM-TokenIndex': mm_session_token_index } + headers: { + 'X-MM-TokenIndex': mm_session_token_index, + 'Accept-Language': mm_locale + } + }); + } else { + $.ajaxSetup({ + headers: { + 'Accept-Language': mm_locale + } }); } |