[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 346749f67d: Handle non-ASCII domains correctly in url-https-proxy
From: |
Lars Ingebrigtsen |
Subject: |
master 346749f67d: Handle non-ASCII domains correctly in url-https-proxy-connect |
Date: |
Thu, 14 Apr 2022 12:08:14 -0400 (EDT) |
branch: master
commit 346749f67db3fd2c0cca0b5615d9fc3f878aa65f
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Handle non-ASCII domains correctly in url-https-proxy-connect
* lisp/url/url-http.el (url-https-proxy-connect)
(url-https-proxy-after-change-function): Handle IDNA domains
correctly.
---
lisp/url/url-http.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index daeba17031..96a4742956 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1405,10 +1405,10 @@ The return value of this function is the retrieval
buffer."
(and proxy-auth
(concat "Proxy-Authorization: " proxy-auth "\r\n")))
"\r\n")
- (url-host url-current-object)
+ (puny-encode-domain (url-host url-current-object))
(or (url-port url-current-object)
url-https-default-port)
- (url-host url-current-object))))
+ (puny-encode-domain (url-host url-current-object)))))
(defun url-https-proxy-after-change-function (_st _nd _length)
(let* ((process-buffer (current-buffer))
@@ -1430,12 +1430,12 @@ The return value of this function is the retrieval
buffer."
(condition-case e
(let ((tls-connection (gnutls-negotiate
:process proc
- :hostname (url-host url-current-object)
+ :hostname (puny-encode-domain (url-host
url-current-object))
:verify-error nil)))
;; check certificate validity
(setq tls-connection
(nsm-verify-connection tls-connection
- (url-host url-current-object)
+ (puny-encode-domain (url-host
url-current-object))
(url-port url-current-object)))
(with-current-buffer process-buffer (erase-buffer))
(set-process-buffer tls-connection process-buffer)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 346749f67d: Handle non-ASCII domains correctly in url-https-proxy-connect,
Lars Ingebrigtsen <=