Skip to content

Commit

Permalink
Merge pull request tornadoweb#1222 from glaslos/patch-1
Browse files Browse the repository at this point in the history
Fixed example in doc string
  • Loading branch information
bdarnell committed Oct 14, 2014
2 parents 7292045 + b92326e commit e2e35db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def handle_request(request):
message = "You requested %s\n" % request.uri
request.connection.write_headers(
httputil.ResponseStartLine('HTTP/1.1', 200, 'OK'),
{"Content-Length": str(len(message))})
httputil.HTTPHeaders({"Content-Length": str(len(message))}))
request.connection.write(message)
request.connection.finish()
Expand Down

0 comments on commit e2e35db

Please sign in to comment.