support legacy session data.

fixes https://github.com/c9/newclient/issues/6955

should be reverted when all current session are expired (one week after this is released)
pull/85/head
Fabian Jakobs 2015-04-21 08:34:47 +00:00
rodzic 40648d045f
commit 702e018ef5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -136,7 +136,7 @@ define(function(require, exports, module) {
var path = req.params.path;
var url = req.proxyUrl + path;
if (req.session.token)
url += "?access_token=" + encodeURIComponent(req.session.token);
url += "?access_token=" + encodeURIComponent(req.session.token.id || req.session.token);
var parsedUrl = parseUrl(url);
var httpModule = parsedUrl.protocol == "https:" ? https : http;