]> git.ipfire.org Git - thirdparty/tornado.git/commit
RequestHander is set up to handle "OPTIONS" requests, but the 469/head
authorSean Creeley <sean.creeley@gmail.com>
Thu, 23 Feb 2012 14:58:58 +0000 (09:58 -0500)
committerSean Creeley <sean.creeley@gmail.com>
Thu, 23 Feb 2012 14:58:58 +0000 (09:58 -0500)
commit12b8c2e5136a04906ea402a435b22948641b4e5c
treee6ecba68a19724631cdab2407e6126dfa6947080
parentd1429ff893f4cb8b150e45d608480c9656a82695
RequestHander is set up to handle "OPTIONS" requests, but the
SimpleAsyncHTTPClient does not allow "OPTIONS" requests. This is a
pain when you are trying to write test cases for CORS. This simple
patch adds "OPTIONS" to the supported _SUPPORTED_METHODS in
_HTTPConnection and a test case to go along with it.
tornado/simple_httpclient.py
tornado/test/simple_httpclient_test.py