Skip to content

Commit f42b66d

Browse files
Fix Cookies
1 parent e51fff1 commit f42b66d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/cli/lib/client.js.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ class Client {
152152
return data;
153153
}
154154

155+
let cookies = response.headers.getSetCookie();
156+
if (cookies && cookies.length > 0) {
157+
globalConfig.setCookie(cookies[0]);
158+
}
159+
155160
const text = await response.text();
156161
let json = undefined;
157162
try {

0 commit comments

Comments
 (0)