Skip to content

Commit

Permalink
Python 3: fix python -m zope.server.http.httpserver
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 22, 2017
1 parent 1fb8d31 commit 3c6cfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/server/http/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class HTTPServer(ServerBase):
def executeRequest(self, task):
"""Execute an HTTP request."""
# This is a default implementation, meant to be overridden.
body = "The HTTP server is running!\r\n" * 10
body = b"The HTTP server is running!\r\n" * 10
task.response_headers['Content-Type'] = 'text/plain'
task.response_headers['Content-Length'] = str(len(body))
task.write(body)
Expand Down

0 comments on commit 3c6cfe0

Please sign in to comment.