From 4f97216501c2d55038aefc4a50b94798ac8bae42 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Tue, 7 Jun 2016 12:07:46 +0530 Subject: [PATCH] Py3: Properly encode() access to user_agents --- pathod/language/http2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathod/language/http2.py b/pathod/language/http2.py index 85d9047fc..45b2a1048 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),