Commits

Robert Brewer committed ee66c59

Fixed #1057 (KnownLengthRFile returns wrong type when data exhausted)

  • Participants
  • Parent commits 3215d7b
  • Tags cherrypy-3.2.2rc1

Comments (0)

Files changed (1)

cherrypy/wsgiserver/wsgiserver3.py

     
     def read(self, size=None):
         if self.remaining == 0:
-            return ''
+            return b''
         if size is None:
             size = self.remaining
         else:
     
     def readline(self, size=None):
         if self.remaining == 0:
-            return ''
+            return b''
         if size is None:
             size = self.remaining
         else: