mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
fixed handling of multiple cookies
This commit is contained in:
@@ -83,13 +83,13 @@ function resolveCookieString(headers) {
|
||||
|
||||
function getSuccessHandler(url, cb) {
|
||||
return function(response) {
|
||||
cookieHandler.setCookie(url, resolveCookieString(response.headers));
|
||||
cookieHandler.setCookieFromString(url, resolveCookieString(response.headers));
|
||||
cb(response);
|
||||
}
|
||||
}
|
||||
|
||||
function getCookieHeader(url) {
|
||||
return { Cookie: cookieHandler.getCookie(url) };
|
||||
return { Cookie: cookieHandler.getCookieString(url) };
|
||||
}
|
||||
|
||||
var http = {
|
||||
|
||||
Reference in New Issue
Block a user