fixed handling of multiple cookies

This commit is contained in:
Sefa Ilkimen
2016-12-07 15:29:54 +01:00
parent b3118d5ccd
commit d90cefcbaa
3 changed files with 41 additions and 11 deletions
+2 -2
View File
@@ -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 = {