diff options
| -rw-r--r-- | webtest/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/app.py b/webtest/app.py index affa69d..b3012cd 100644 --- a/webtest/app.py +++ b/webtest/app.py @@ -206,7 +206,7 @@ class TestApp(object): val = b64encode(to_bytes(val)).strip() val = val.decode('latin1') elif authtype == 'Bearer' and val and \ - isinstance(val, text_type): + isinstance(val, (str, text_type)): val = val.strip() else: raise ValueError(invalid_value) |
