mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 23:41:37 -05:00
jupyter-rest-client: Raise an error when GnuTLS unavailable for HTTPS connections
This commit is contained in:
parent
933e5c65a6
commit
dd4332a7cc
1 changed files with 6 additions and 1 deletions
|
@ -121,7 +121,12 @@ respectively."
|
|||
(unless (slot-boundp client 'ws-url)
|
||||
(let ((url (url-generic-parse-url (oref client url))))
|
||||
(setf (url-type url) (if (equal (url-type url) "https") "wss" "ws"))
|
||||
(oset client ws-url (url-recreate-url url)))))
|
||||
(oset client ws-url (url-recreate-url url))))
|
||||
(unless (gnutls-available-p)
|
||||
(let ((url (url-generic-parse-url (oref client url)))
|
||||
(ws-url (url-generic-parse-url (oref client ws-url))))
|
||||
(when (or (equal (url-type url) "https") (equal (url-type ws-url) "wss"))
|
||||
(user-error "GnuTLS not available for HTTPS (SSL/TSL) connections")))))
|
||||
|
||||
;;; Making HTTP requests
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue