diff --git a/examples/asyncio/wsgi-server.py b/examples/asyncio/wsgi-server.py index 99562f638..11105cbb9 100644 --- a/examples/asyncio/wsgi-server.py +++ b/examples/asyncio/wsgi-server.py @@ -535,7 +535,7 @@ def readlines(self, hint=None): Called by the WSGI application to read several lines of data. """ data = self.read(hint) - lines = data.splitlines(True) + lines = data.splitlines(keepends=True) return lines def start_response(self, status, response_headers, exc_info=None):