Commit 2e5bda0
committed
fix: get all Set-Cookie headers to support both cc-session and parent_session_credentials
ClassCharts returns two cookies on login:
- cc-session
- parent_session_credentials
The original code used response.headers.get('set-cookie') which only
returns the first cookie, causing subsequent API calls to fail with
'You are not logged in'.
This fix uses getSetCookie() to retrieve all Set-Cookie headers.1 parent 65ae5d4 commit 2e5bda0
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | | - | |
| 80 | + | |
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
| |||
0 commit comments