File: 0007-debugging-enable-HTTPRedirectDebugProcessor-for-http.patch

package info (click to toggle)
python-mechanize 1%3A0.4.8%2Bpypi-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,612 kB
  • sloc: python: 16,644; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Markus Koetter <koetter@cispa.de>
Date: Tue, 1 Nov 2022 11:06:39 +0100
Subject: debugging - enable HTTPRedirectDebugProcessor for https

---
 mechanize/_debug.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mechanize/_debug.py b/mechanize/_debug.py
index 4bb1c7c..8e3b098 100644
--- a/mechanize/_debug.py
+++ b/mechanize/_debug.py
@@ -30,3 +30,6 @@ class HTTPRedirectDebugProcessor(BaseHandler):
             info = logging.getLogger("mechanize.http_redirects").info
             info("redirecting to %s", request.get_full_url())
         return request
+        
+    https_response = http_response
+