mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-api-copy-cookies-for-websocket: Ensure modified cookies will be written to file
This commit is contained in:
parent
239715919f
commit
36aec72814
1 changed files with 4 additions and 2 deletions
|
@ -313,9 +313,11 @@ see RFC 6265."
|
||||||
(when-let* ((url (url-generic-parse-url url))
|
(when-let* ((url (url-generic-parse-url url))
|
||||||
(host (url-host url))
|
(host (url-host url))
|
||||||
(port (url-port-if-non-default url))
|
(port (url-port-if-non-default url))
|
||||||
(host-port (format "%s:%s" host port)))
|
(host-port (format "%s:%s" host port))
|
||||||
|
(cookies (jupyter-api-url-cookies url)))
|
||||||
|
(setq url-cookies-changed-since-last-save t)
|
||||||
(cl-loop
|
(cl-loop
|
||||||
for cookie in (jupyter-api-url-cookies url)
|
for cookie in cookies
|
||||||
do (pcase-let (((cl-struct url-cookie name value expires
|
do (pcase-let (((cl-struct url-cookie name value expires
|
||||||
localpart secure)
|
localpart secure)
|
||||||
cookie))
|
cookie))
|
||||||
|
|
Loading…
Add table
Reference in a new issue