[FIX] http: fix jsonp, session_id no longer exists

`session_id` is deprecated,
`session.sid` must be used instead.

This is similiar to the revision
4033ccc129
This commit is contained in:
Denis Ledoux
2016-09-30 14:08:19 +02:00
parent 2432a1296a
commit ae5c6ce344
+1 -1
View File
@@ -619,7 +619,7 @@ class JsonRequest(WebRequest):
# If we use jsonp, that's mean we are called from another host
# Some browser (IE and Safari) do no allow third party cookies
# We need then to manage http sessions manually.
response['session_id'] = self.session_id
response['session_id'] = self.session.sid
mime = 'application/javascript'
body = "%s(%s);" % (self.jsonp, json.dumps(response),)
else: