mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
web: 'http-get' & co. now honor #:verify-certificate?.
Previously they would always assume #:verify-certificate? #t, unless #:port was given. Fixes <https://bugs.gnu.org/40486>. Reported by Jan Synacek <jsynacek@redhat.com>. * module/web/client.scm (define-http-verb): Pass #:verify-certificate? to 'open-socket-for-uri'.
This commit is contained in:
parent
431056793a
commit
a5421d2bb6
1 changed files with 4 additions and 2 deletions
|
@ -545,12 +545,14 @@ true)."
|
|||
(define-syntax-rule (define-http-verb http-verb method doc)
|
||||
(define* (http-verb uri #:key
|
||||
(body #f)
|
||||
(port (open-socket-for-uri uri))
|
||||
(verify-certificate? #t)
|
||||
(port (open-socket-for-uri uri
|
||||
#:verify-certificate?
|
||||
verify-certificate?))
|
||||
(version '(1 . 1))
|
||||
(keep-alive? #f)
|
||||
(headers '())
|
||||
(decode-body? #t)
|
||||
(verify-certificate? #t)
|
||||
(streaming? #f))
|
||||
doc
|
||||
(http-request uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue