From c9af29b24a64a029a482d3d034475574ef79457d Mon Sep 17 00:00:00 2001 From: Gilgamesh Date: Fri, 24 Jan 2020 21:52:06 -0500 Subject: [PATCH] Fix for issue 3797 --- mitmproxy/optmanager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py index f42aa645c..ac85f83a3 100644 --- a/mitmproxy/optmanager.py +++ b/mitmproxy/optmanager.py @@ -320,8 +320,7 @@ class OptManager: update = {} for optname, optval in self.deferred.items(): if optname in self._options: - if isinstance(optval, str): - optval = self.parse_setval(self._options[optname], optval) + optval = self.parse_setval(self._options[optname], optval) update[optname] = optval self.update(**update) for k in update.keys():