]> git.ipfire.org Git - thirdparty/tornado.git/commit
Cast start_line.code to an integer 1568/head
authorChris Seto <chriskseto@gmail.com>
Mon, 26 Oct 2015 05:23:50 +0000 (01:23 -0400)
committerChris Seto <chriskseto@gmail.com>
Mon, 26 Oct 2015 05:23:50 +0000 (01:23 -0400)
commitb507c9ac5ec1a3b843c9edddbcca88af47a6f3ae
tree85c3f3e559acd3a73d94d8d87f9507bd1a4ca842
parent1ecc7386da17df3f1dfd100845355f7211119a62
Cast start_line.code to an integer

Allows use of http.client.HTTPStatus in self.write_status
'%s' % http.client.OK == 'HTTPStatus.OK'
'%d' % http.client.OK == '200'
tornado/http1connection.py