From 78b2fa3a130837b53e1e839cca0d6e6f69b0500f Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Sun, 5 Jun 2016 23:10:55 +0530 Subject: Py3: UASTRINGS should be indexed by and return bytes --- pathod/language/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3