Skip to content

Commit

Permalink
Added Request.writeln in contrib.http
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Allik committed Aug 28, 2013
1 parent 834b46c commit 5fb745b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spinoff/contrib/http/server.py
Expand Up @@ -117,6 +117,9 @@ def write(self, data):
self._start_response('200 OK', [('Content-Type', 'text/html')])
self.ch.put(data)

def writeln(self, data):
self.write(data + b'\n')

def close(self):
if not self._response_started:
self._start_response('200 OK', [('Content-Type', 'text/html')])
Expand Down

0 comments on commit 5fb745b

Please sign in to comment.