lang/rest: prompt for self-signed/invalid certs
This commit is contained in:
parent
ce9f03f310
commit
d60296111e
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,14 @@
|
|||
:mode ("\\.http\\'" . restclient-mode)
|
||||
:config
|
||||
(set-popup-rule! "^\\*HTTP Response" :size 0.4 :quit 'other)
|
||||
|
||||
;; Forces underlying SSL verification to prompt for self-signed or invalid
|
||||
;; certs, rather than silently reject them.
|
||||
(defun +rest*permit-self-signed-ssl (orig-fn &rest args)
|
||||
(let (gnutls-verify-error tls-checktrust)
|
||||
(apply orig-fn args)))
|
||||
(advice-add #'restclient-http-do :around #'+rest*permit-self-signed-ssl)
|
||||
|
||||
(map! :mode restclient-mode
|
||||
:n [M-return] 'restclient-http-send-current
|
||||
:localleader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue