mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
minor fixes
This commit is contained in:
parent
32b487109f
commit
436a9ea839
@ -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)
|
||||
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user