aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/language
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-06-05 23:10:55 +0530
committerMaximilian Hils <git@maximilianhils.com>2016-06-06 11:52:45 -0700
commit78b2fa3a130837b53e1e839cca0d6e6f69b0500f (patch)
tree4cb048ebadbca9fea6041f38499ffdb5759fbe81 /pathod/language
parentda38ce2e6efc685f760655c75b716a2723303c91 (diff)
downloadmitmproxy-78b2fa3a130837b53e1e839cca0d6e6f69b0500f.tar.gz
mitmproxy-78b2fa3a130837b53e1e839cca0d6e6f69b0500f.tar.bz2
mitmproxy-78b2fa3a130837b53e1e839cca0d6e6f69b0500f.zip
Py3: UASTRINGS should be indexed by and return bytes
Diffstat (limited to 'pathod/language')
-rw-r--r--pathod/language/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/language/http.py b/pathod/language/http.py
index 51b4d8c0..b088d2cc 100644
--- a/pathod/language/http.py
+++ b/pathod/language/http.py
@@ -88,7 +88,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.format_header(
self.key.get_generator(settings),