From: Satoshi Nakagawa <ghnacker@gmail.com>
To: 42422@debbugs.gnu.org
Subject: bug#42422: fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header
Date: Sun, 19 Jul 2020 10:10:33 +0900 [thread overview]
Message-ID: <CBAE6D6E-AFB1-4D42-9FDF-C4C8BEF86099@gmail.com> (raw)
commit 27b37d16418cd64321505e721b40b6b5d730ebdf (HEAD -> fix/url-https-proxy-connect, fork/fix/url-https-proxy-connect)
Author: Satoshi Nakagawa <ghnacker@gmail.com>
Date: Sun Jul 19 10:05:27 2020 +0900
fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 669c24571f..9c1219d5c0 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1406,6 +1406,10 @@ The return value of this function is the retrieval buffer."
(setq url-http-after-change-function 'url-https-proxy-after-change-function)
(process-send-string connection (format (concat "CONNECT %s:%d HTTP/1.1\r\n"
"Host: %s\r\n"
+ (let ((proxy-auth (let ((url-basic-auth-storage
+ 'url-http-proxy-basic-auth-storage))
+ (url-get-authentication url-http-proxy nil 'any nil))))
+ (if proxy-auth (concat "Proxy-Authorization: " proxy-auth "\r\n")))
"\r\n")
(url-host url-current-object)
(or (url-port url-current-object)
next reply other threads:[~2020-07-19 1:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-19 1:10 Satoshi Nakagawa [this message]
2020-07-19 19:12 ` bug#42422: fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CBAE6D6E-AFB1-4D42-9FDF-C4C8BEF86099@gmail.com \
--to=ghnacker@gmail.com \
--cc=42422@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.