Dump headers as well

This commit is contained in:
Girish Ramakrishnan 2015-07-29 09:16:10 -07:00
parent 5af0984054
commit 0b20fe7f7e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ Cloudron.prototype.getOauthToken = function (user) {
///////// should get redirected to login form with a script tag (to workaround chrome issue with redirects+cookies)
var redirectUrl = res.text.match(/window.location.href = "(.*)"/);
if (!redirectUrl) {
debug('Could not determine redirected url', res.text);
debug('Could not determine redirected url', res.text, res.headers);
assert(false);
}
var urlp = url.parse(redirectUrl[1]);