1. cherrypy
  2. CherryPy

Commits

shladnik  committed 6f3d9f4

Fix for issue #421 in Python3.

  • Participants
  • Parent commits fadc805
  • Branches cherrypy-3.2.x

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/wsgiserver3.py

View file
             self._check_length()
             res.append(data)
             # See http://www.cherrypy.org/ticket/421
-            if len(data) < 256 or data[-1:] == "\n":
+            if len(data) < 256 or data[-1:].decode() == "\n":
                 return EMPTY.join(res)
 
     def readlines(self, sizehint=0):