mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
v3: fallbackto authWithHeaders if wuthWithSession or authWithUrl fails
This commit is contained in:
@@ -64,13 +64,6 @@ function _requestMaker (user, method, additionalSets = {}) {
|
||||
return reject(parsedError);
|
||||
}
|
||||
|
||||
// if any cookies was sent, save it for the next request
|
||||
if (response.headers['set-cookie']) {
|
||||
additionalSets.cookie = response.headers['set-cookie'].map(cookieString => {
|
||||
return cookieString.split(';')[0];
|
||||
}).join('; ');
|
||||
}
|
||||
|
||||
resolve(_parseRes(response));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user