File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
sphinx/transforms/post_transforms Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ Bugs fixed
5050* #11675: Fix rendering of progression bars in environments that do not support
5151 ANSI control sequences.
5252 Patch by Bénédikt Tran.
53+ * #11715: Apply ``tls_verify `` and ``tls_cacerts `` config to
54+ ``ImageDownloader ``.
55+ Patch by Nick Touran.
5356
5457Testing
5558-------
Original file line number Diff line number Diff line change @@ -75,7 +75,12 @@ def handle(self, node: nodes.image) -> None:
7575 timestamp : float = ceil (os .stat (path ).st_mtime )
7676 headers ['If-Modified-Since' ] = epoch_to_rfc1123 (timestamp )
7777
78- r = requests .get (node ['uri' ], headers = headers )
78+ config = self .app .config
79+ r = requests .get (
80+ node ['uri' ], headers = headers ,
81+ _user_agent = config .user_agent ,
82+ _tls_info = (config .tls_verify , config .tls_cacerts ),
83+ )
7984 if r .status_code >= 400 :
8085 logger .warning (__ ('Could not fetch remote image: %s [%d]' ) %
8186 (node ['uri' ], r .status_code ))
You can’t perform that action at this time.
0 commit comments