minor fixes

This commit is contained in:
Maximilian Hils 2015-09-14 23:58:06 +02:00
parent 32b487109f
commit 436a9ea839
3 changed files with 4 additions and 10 deletions

View File

@ -11,15 +11,8 @@ from __future__ import (absolute_import, print_function, division)
class ProxyException(Exception):
"""
Base class for all exceptions thrown by libmproxy.
Args:
message: the error message
cause: (optional) an error object that caused this exception, e.g. an IOError.
"""
def __init__(self, message):
"""
:param message: Error Message
"""
def __init__(self, message=None):
super(ProxyException, self).__init__(message)

View File

@ -1,14 +1,14 @@
from __future__ import (absolute_import, print_function, division)
from .http import (
HTTPFlow, HTTPRequest, HTTPResponse, decoded,
HTTPFlow, HTTPRequest, HTTPResponse, Headers, decoded,
make_error_response, make_connect_request, make_connect_response
)
from .connections import ClientConnection, ServerConnection
from .flow import Flow, Error
__all__ = [
"HTTPFlow", "HTTPRequest", "HTTPResponse", "decoded",
"HTTPFlow", "HTTPRequest", "HTTPResponse", "Headers", "decoded",
"make_error_response", "make_connect_request",
"make_connect_response",
"ClientConnection", "ServerConnection",

View File

@ -227,6 +227,7 @@ class TlsLayer(Layer):
def __init__(self, ctx, client_tls, server_tls):
self.client_sni = None
self.client_alpn_protocols = None
self.client_ciphers = []
super(TlsLayer, self).__init__(ctx)
self._client_tls = client_tls