mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
add requirements.txt, small changes
This commit is contained in:
parent
22aae5fb66
commit
969595cca7
@ -233,6 +233,10 @@ def parse_init(line):
|
|||||||
|
|
||||||
|
|
||||||
def parse_init_connect(line):
|
def parse_init_connect(line):
|
||||||
|
"""
|
||||||
|
Returns (host, port, httpversion) if line is a valid CONNECT line.
|
||||||
|
http://tools.ietf.org/html/draft-luotonen-web-proxy-tunneling-01 section 3.1
|
||||||
|
"""
|
||||||
v = parse_init(line)
|
v = parse_init(line)
|
||||||
if not v:
|
if not v:
|
||||||
return None
|
return None
|
||||||
|
@ -126,8 +126,6 @@ class AuthAction(Action):
|
|||||||
"""
|
"""
|
||||||
def __call__(self, parser, namespace, values, option_string=None):
|
def __call__(self, parser, namespace, values, option_string=None):
|
||||||
passman = self.getPasswordManager(values)
|
passman = self.getPasswordManager(values)
|
||||||
if not passman:
|
|
||||||
raise ArgumentTypeError("Error creating password manager for proxy authentication.")
|
|
||||||
authenticator = BasicProxyAuth(passman, "mitmproxy")
|
authenticator = BasicProxyAuth(passman, "mitmproxy")
|
||||||
setattr(namespace, self.dest, authenticator)
|
setattr(namespace, self.dest, authenticator)
|
||||||
|
|
||||||
|
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pyasn1>=0.1.7
|
||||||
|
pyOpenSSL>=0.13
|
||||||
|
nose>=1.3.0
|
||||||
|
pathod>=0.9.2
|
Loading…
Reference in New Issue
Block a user