fix(rest): gnutls-verify-error: defining as dynamic error

An error results if you let-bind a dynamic variable before it's defined,
so I forcibly ensure gnutls-verify-error is defined.

Fix: #6073
Close: #6525
This commit is contained in:
Henrik Lissner 2022-10-28 23:22:52 +02:00
parent 1b99805e1b
commit 3d8f9ae5ea
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -14,7 +14,8 @@
"Forces underlying SSL verification to prompt for self-signed or invalid "Forces underlying SSL verification to prompt for self-signed or invalid
certs, rather than reject them silently." certs, rather than reject them silently."
:around #'restclient-http-do :around #'restclient-http-do
(let (gnutls-verify-error tls-checktrust) (require 'gnutls)
(let (gnutls-verify-error)
(apply fn args))) (apply fn args)))
(map! :map restclient-mode-map (map! :map restclient-mode-map