add requirements.txt, small changes

This commit is contained in:
Maximilian Hils 2013-12-13 06:24:08 +01:00
parent 22aae5fb66
commit 969595cca7
3 changed files with 8 additions and 2 deletions

View File

@ -233,6 +233,10 @@ def parse_init(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)
if not v:
return None

View File

@ -126,8 +126,6 @@ class AuthAction(Action):
"""
def __call__(self, parser, namespace, values, option_string=None):
passman = self.getPasswordManager(values)
if not passman:
raise ArgumentTypeError("Error creating password manager for proxy authentication.")
authenticator = BasicProxyAuth(passman, "mitmproxy")
setattr(namespace, self.dest, authenticator)

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
pyasn1>=0.1.7
pyOpenSSL>=0.13
nose>=1.3.0
pathod>=0.9.2