diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-07 12:07:46 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-08 16:15:54 +0530 |
commit | 4f97216501c2d55038aefc4a50b94798ac8bae42 (patch) | |
tree | 1e89b4f910c1ee1cef169e7bdf0eb5e32666953f | |
parent | e93fe9d4fa37ec1aae60eee612be7a9cd989891c (diff) | |
download | mitmproxy-4f97216501c2d55038aefc4a50b94798ac8bae42.tar.gz mitmproxy-4f97216501c2d55038aefc4a50b94798ac8bae42.tar.bz2 mitmproxy-4f97216501c2d55038aefc4a50b94798ac8bae42.zip |
Py3: Properly encode() access to user_agents
-rw-r--r-- | pathod/language/http2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/language/http2.py b/pathod/language/http2.py index 85d9047f..45b2a104 100644 --- a/pathod/language/http2.py +++ b/pathod/language/http2.py @@ -125,7 +125,7 @@ class ShortcutUserAgent(_HeaderMixin, base.OptionsOrValue): def values(self, settings): value = self.value.val if self.option_used: - value = user_agents.get_by_shortcut(value.lower())[2] + value = user_agents.get_by_shortcut(value.lower().decode())[2].encode() return ( self.key.get_generator(settings), |