[FIX] im_livechat: Strict MIME type.

Backport of revisions
 - 100d604cb0
 - ddd3e08fbc
opw-667814
This commit is contained in:
Denis Ledoux
2016-01-28 16:48:46 +01:00
parent 995b257a6c
commit fd038801c0
+1 -1
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):