mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-07 02:28:50 +00:00
Py3: Properly encode() access to user_agents
This commit is contained in:
parent
e93fe9d4fa
commit
4f97216501
@ -125,7 +125,7 @@ class ShortcutUserAgent(_HeaderMixin, base.OptionsOrValue):
|
|||||||
def values(self, settings):
|
def values(self, settings):
|
||||||
value = self.value.val
|
value = self.value.val
|
||||||
if self.option_used:
|
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 (
|
return (
|
||||||
self.key.get_generator(settings),
|
self.key.get_generator(settings),
|
||||||
|
Loading…
Reference in New Issue
Block a user