diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-08 23:06:09 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-08 23:06:09 +1200 |
commit | 05efcf0a786b0bc51257b322014fceb6561d0f48 (patch) | |
tree | c316aec35670bb43f28eb9d3373564dbdb9614a2 /libpathod/language/base.py | |
parent | 7b4e50bb6868b7e0c63137c636720ccd3b974faa (diff) | |
parent | 293e3c68969f6abdc09cc390f93b658e60ce79be (diff) | |
download | mitmproxy-05efcf0a786b0bc51257b322014fceb6561d0f48.tar.gz mitmproxy-05efcf0a786b0bc51257b322014fceb6561d0f48.tar.bz2 mitmproxy-05efcf0a786b0bc51257b322014fceb6561d0f48.zip |
Merge pull request #25 from Kriechi/pathoc-http2
[WIP] pathoc: HTTP/2
Diffstat (limited to 'libpathod/language/base.py')
-rw-r--r-- | libpathod/language/base.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libpathod/language/base.py b/libpathod/language/base.py index ee5d05b5..88712d69 100644 --- a/libpathod/language/base.py +++ b/libpathod/language/base.py @@ -15,13 +15,15 @@ class Settings: staticdir = None, unconstrained_file_access = False, request_host = None, - websocket_key = None + websocket_key = None, + protocol = None, ): + self.is_client = is_client self.staticdir = staticdir self.unconstrained_file_access = unconstrained_file_access self.request_host = request_host - self.websocket_key = websocket_key - self.is_client = is_client + self.websocket_key = websocket_key # TODO: refactor this into the protocol + self.protocol = protocol Sep = pp.Optional(pp.Literal(":")).suppress() |