Commits

shladnik  committed 9b4e0bb

Fix for issue #421 in Python3.

  • Participants
  • Parent commits 586bee7

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/wsgiserver3.py

             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):