We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5febd7 commit abbe42aCopy full SHA for abbe42a
main.py
@@ -14,7 +14,10 @@
14
url = 'http://example.com' # Replace with a valid URL
15
req = requests.Request('GET', url)
16
prep = req.prepare()
17
- session.rebuild_proxies(prep, proxies)
+
18
+ # Check if the scheme does not start with 'https' before adding Proxy-Authorization header
19
+ if not prep.url.startswith('https'):
20
+ session.rebuild_proxies(prep, proxies)
21
22
# Introduce a command injection vulnerability
23
user_input = input("Enter a command to execute: ")
0 commit comments