[FIX] im_livechat: Strict MIME type.

Backport of revisions
 - 100d604cb0ebd6aa3f57c9809c6771b0b4b72a07
 - ddd3e08fbcb54e971537f9f20668c00dbe36ab37
opw-667814
This commit is contained in:
Denis Ledoux 2016-01-28 16:44:35 +01:00
parent 995b257a6c
commit fd038801c0
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class LiveChatController(http.Controller):
info["dbname"] = dbname
info["channel"] = channel_id
info["username"] = kwargs.get("username", "Visitor")
return request.render('im_livechat.loader', info)
return request.render('im_livechat.loader', info, headers=[('Content-Type', 'application/javascript')])
@http.route('/im_livechat/get_session', type="json", auth="none")
def get_session(self, channel_id, anonymous_name, **kwargs):