This commit is contained in:
Antelle 2015-11-22 15:03:54 +03:00
parent f2eefd32ba
commit 8f906541a0
3 changed files with 9 additions and 2 deletions

View File

@ -46,6 +46,13 @@ var Transport = {
config.success(data);
});
}
} else if (res.headers.location && [301, 302].indexOf(res.statusCode) >= 0) {
if (config.noRedirect) {
return config.error('Too many redirects');
}
config.url = res.headers.location;
config.noRedirect = true;
Transport.httpGet(config);
} else {
config.error('HTTP status ' + res.statusCode);
}

View File

@ -1,6 +1,6 @@
{
"name": "KeeWeb",
"version": "0.4.1",
"version": "0.4.2",
"description": "KeePass web app",
"main": "main.js",
"repository": "https://github.com/antelle/keeweb",

View File

@ -1,6 +1,6 @@
{
"name": "keeweb",
"version": "0.4.1",
"version": "0.4.2",
"description": "KeePass web app",
"main": "Gruntfile.js",
"repository": "https://github.com/antelle/keeweb",