]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fixes bug disallowing custom-made reason phrase 1102/head
authorPer Kraulis <per.kraulis@scilifelab.se>
Thu, 10 Jul 2014 13:47:28 +0000 (15:47 +0200)
committerPer Kraulis <per.kraulis@scilifelab.se>
Thu, 10 Jul 2014 13:47:28 +0000 (15:47 +0200)
commit590ce3f3b810c2ea651e5c08be007bb4f1e8eb2e
treee22b2521941373209d51d27c8a35403cb25c7317
parent8b5c4ae272d3ef57438a515dfe41b65180528a32
Fixes bug disallowing custom-made reason phrase

The send_error method is, I believe, supposed to allow sending an HTTP reason phrase that is not one of the standard ones. This change corrects an apparent bug which made this impossible. With the correction, specifying an 'error' keyword argument to send_error actually sends the specified
reason phrase to the client.
tornado/web.py