diff options
| author | Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | 2018-09-05 16:08:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-05 16:08:20 +0200 |
| commit | 4142bea9465fe91efaa55ba4febc2856b763defb (patch) | |
| tree | d06befe06afdab87b154d0de3729512dce3edc87 /cherrypy/lib | |
| parent | 6d6d71e1b7b52d6051adfcdef4001e8dfc3e6648 (diff) | |
| parent | 802d0205a895fe2a73e9499ea3e572332f113a2a (diff) | |
| download | cherrypy-git-4142bea9465fe91efaa55ba4febc2856b763defb.tar.gz | |
Don't convert bytes headers to str
PR #1736 by @tobiashenkel
Diffstat (limited to 'cherrypy/lib')
| -rw-r--r-- | cherrypy/lib/httputil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/httputil.py b/cherrypy/lib/httputil.py index 487a029f..6a7f221b 100644 --- a/cherrypy/lib/httputil.py +++ b/cherrypy/lib/httputil.py @@ -513,7 +513,7 @@ class HeaderMap(CaseInsensitiveDict): transmitting on the wire for HTTP. """ for k, v in header_items: - if not isinstance(v, str): + if not isinstance(v, str) and not isinstance(v, bytes): v = str(v) yield tuple(map(cls.encode_header_item, (k, v))) |
