diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2012-04-06 21:32:13 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2012-04-06 21:32:13 -0400 |
| commit | 7bf5027c2efb92e1a3da1b08ecbee5dc4b762166 (patch) | |
| tree | 45ac549aa6c3b2aa60e180aef8eaf4de57a05baf | |
| parent | e1f2cfbe0feeb1ea9e239f2fca6e4fb1d0bfbb14 (diff) | |
| download | cherrypy-git-7bf5027c2efb92e1a3da1b08ecbee5dc4b762166.tar.gz | |
Fixed issue in HeaderElement.__str__ where it could sometimes return a non-native string.
--HG--
branch : cherrypy-3.2.x
| -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 e30942cb..01d7faaa 100644 --- a/cherrypy/lib/httputil.py +++ b/cherrypy/lib/httputil.py @@ -122,7 +122,7 @@ class HeaderElement(object): def __str__(self): p = [";%s=%s" % (k, v) for k, v in iteritems(self.params)] - return "%s%s" % (self.value, "".join(p)) + return str("%s%s" % (self.value, "".join(p))) def __bytes__(self): return ntob(self.__str__()) |
