]>
git.ipfire.org Git - thirdparty/tornado.git/log
Alan Hogan [Thu, 19 May 2011 02:51:31 +0000 (19:51 -0700)]
Typo, restore missing path setting, and mention the capturing group
Alan Hogan [Sun, 15 May 2011 19:05:13 +0000 (12:05 -0700)]
Document how to fake other root files despite serving with StaticFileHandler
Alan Hogan [Sun, 15 May 2011 19:04:01 +0000 (12:04 -0700)]
Document RedirectHandler
Alan Hogan [Thu, 12 May 2011 17:50:00 +0000 (10:50 -0700)]
Describe redirections and the permanent argument
bdarnell [Fri, 6 May 2011 05:51:26 +0000 (22:51 -0700)]
Merge pull request #258 from kmike/master
Better error handling for websockets
Mikhail Korobov [Wed, 4 May 2011 15:17:51 +0000 (21:17 +0600)]
Better error handling for exceptions in on_message for websockets: avoid extra IOErrors
Ben Darnell [Mon, 2 May 2011 03:55:38 +0000 (20:55 -0700)]
Speed up a common case in iostream._merge_prefix
Ben Darnell [Mon, 2 May 2011 03:48:55 +0000 (20:48 -0700)]
Memoize HTTPHeaders._normalize_name
Ben Darnell [Mon, 2 May 2011 03:39:18 +0000 (20:39 -0700)]
StackContext speedups: special-case some common situations,
and stop using function attributes.
Ben Darnell [Sun, 1 May 2011 21:33:28 +0000 (14:33 -0700)]
Fix for python2.5: heapq used to use __le__ instead of __lt__
Ben Darnell [Sun, 1 May 2011 20:54:46 +0000 (13:54 -0700)]
Change IOLoop._timeouts from a sorted list to a heapq.
Closes #195
Ben Darnell [Sun, 1 May 2011 19:55:08 +0000 (12:55 -0700)]
Run all IOStream callbacks via IOLoop.add_callback.
Closes #252
Ben Darnell [Sun, 1 May 2011 19:17:00 +0000 (12:17 -0700)]
Document the ability to modify XSRF protection by overriding check_xsrf_cookie.
Closes #254
Ben Darnell [Sun, 1 May 2011 18:59:11 +0000 (11:59 -0700)]
Support https for UIModule javascript_files and css_files.
Closes #256.
bdarnell [Sun, 1 May 2011 18:51:16 +0000 (11:51 -0700)]
Merge pull request #253 from mcella/patch-1.
RequestHandler.get_argument should raise an HTTP 400 Bad Request
Michele Cella [Thu, 28 Apr 2011 10:49:03 +0000 (03:49 -0700)]
RequestHandler.get_argument should raise an HTTP 400 Bad Request if the argument is missing, not a misleading HTTP 404 Not Found.
Ben Darnell [Mon, 25 Apr 2011 06:16:31 +0000 (23:16 -0700)]
Better check for missing messages in facebook demo
Ben Darnell [Mon, 25 Apr 2011 06:15:08 +0000 (23:15 -0700)]
Check to see if actions field is present in facebook demo
Closes #251.
Ben Darnell [Mon, 25 Apr 2011 06:13:13 +0000 (23:13 -0700)]
Add **kwargs to WebSocketHandler.__init__
Closes #250.
Ben Darnell [Mon, 25 Apr 2011 06:11:42 +0000 (23:11 -0700)]
Infer option types from the default when possible.
Closes #248.
Ben Darnell [Mon, 25 Apr 2011 05:57:12 +0000 (22:57 -0700)]
Ignore hidden directories (e.g. .svn) in load_gettext_translations.
Closes #247.
Ben Darnell [Sat, 16 Apr 2011 20:44:51 +0000 (13:44 -0700)]
Fix broken link
Ben Darnell [Sat, 16 Apr 2011 20:41:40 +0000 (13:41 -0700)]
str.encode('base64') != base64.b64encode()
Add check for newlines in request headers.
Closes #246
Ben Darnell [Sat, 16 Apr 2011 20:26:03 +0000 (13:26 -0700)]
Convert WSGI content-length variable to an int at the right place
Closes #245
Ben Darnell [Sat, 16 Apr 2011 20:23:39 +0000 (13:23 -0700)]
Make template constructor accept unicode strings
Closes #244
Ben Darnell [Thu, 31 Mar 2011 04:08:12 +0000 (21:08 -0700)]
Move another curl hack (disabling Pragma: no-cache) to curl_httpclient.py
Ben Darnell [Thu, 31 Mar 2011 04:04:42 +0000 (21:04 -0700)]
Add appengine config for /favicon.ico
Peter Bengtsson [Wed, 30 Mar 2011 17:36:57 +0000 (18:36 +0100)]
adding favicon.ico for website
Neil Rahilly [Mon, 28 Mar 2011 21:13:06 +0000 (17:13 -0400)]
Disable Expect header in curl_httpclient.py without clearing all headers.
Fixes previous fix (
18f942b ).
Neil Rahilly [Mon, 28 Mar 2011 15:11:04 +0000 (11:11 -0400)]
Fix Expect header bug in curl_httpclient.py.
setopt, when used with HTTPHEADER, takes a list, not a string.
Ben Darnell [Mon, 28 Mar 2011 03:30:42 +0000 (20:30 -0700)]
Add support for username/password in url for simple_httpclient.
I considered making this functionality opt-in, but decided to allow it
for consistency with curl.
Closes #230.
Ben Darnell [Fri, 25 Mar 2011 02:21:37 +0000 (19:21 -0700)]
Document the fact that CSV files should not have spaces after commas
Ben Darnell [Tue, 15 Mar 2011 06:06:05 +0000 (23:06 -0700)]
Move curl Expect: header hack from httpclient.py to curl_httpclient.py.
Fixes: #233.
Brian Beach [Mon, 14 Mar 2011 15:34:19 +0000 (11:34 -0400)]
Make AsyncTestCase call tearDown in super class.
The setUp method was calling super, but tearDown wasn't. Now they
both are.
This change includes a new unit test case to verify the fix.
Ben Darnell [Mon, 7 Mar 2011 02:31:51 +0000 (18:31 -0800)]
Update docstrings for get_user_locale and get_error_html.
Ben Darnell [Thu, 3 Mar 2011 21:45:58 +0000 (13:45 -0800)]
Update facebook demo to use the graph api instead of the older api.
Ben Darnell [Thu, 3 Mar 2011 20:49:58 +0000 (12:49 -0800)]
Merge commit 'v1.2.1'
Ben Darnell [Thu, 3 Mar 2011 20:41:26 +0000 (12:41 -0800)]
Set version number to 1.2.1
Ben Darnell [Thu, 3 Mar 2011 20:38:31 +0000 (12:38 -0800)]
In FacebookGraphMixin, explicitly request required user fields.
This is necessary due to a recent change in the facebook API.
Closes #227.
Ben Darnell [Thu, 24 Feb 2011 06:53:59 +0000 (22:53 -0800)]
Ignore auto2to3 cache files
Ben Darnell [Thu, 24 Feb 2011 05:00:57 +0000 (21:00 -0800)]
Test improvement: order-independent comparison, better cleanup.
For some reason the results are coming back out of order in python2.5
(select vs kqueue, maybe?)
Ben Darnell [Thu, 24 Feb 2011 01:15:36 +0000 (17:15 -0800)]
Python3 fixes in IOLoop
* __lt__ instead of __cmp__
* Write bytes instead of str to waker pipe
* Reading from the waker pipe returns '' at EOF instead of raising error
Ben Darnell [Thu, 24 Feb 2011 00:59:49 +0000 (16:59 -0800)]
Fix references to str() type for python3
Ben Darnell [Thu, 24 Feb 2011 00:53:32 +0000 (16:53 -0800)]
Fix encoding issues in options.py for python3.
Ben Darnell [Wed, 23 Feb 2011 22:51:35 +0000 (14:51 -0800)]
Make SimpleAsyncHTTPClient the default.
Get rid of the environment variable hack for selecting client
implementations.
Ben Darnell [Wed, 23 Feb 2011 22:50:43 +0000 (14:50 -0800)]
Add a new method to configure AsyncHTTPClient.
Deprecate most keyword arguments to AsyncHTTPClient in favor of the new
configure method.
Ben Darnell [Wed, 23 Feb 2011 22:22:23 +0000 (14:22 -0800)]
Add a utility function to import an object by name.
Ben Darnell [Wed, 23 Feb 2011 22:03:49 +0000 (14:03 -0800)]
Move AsyncHTTPClient creation logic to httpclient.py.
Ben Darnell [Wed, 23 Feb 2011 18:08:00 +0000 (10:08 -0800)]
OPTIONS should not require an XSRF token.
Closes #225.
Ben Darnell [Tue, 22 Feb 2011 21:35:41 +0000 (13:35 -0800)]
Check for EOF in the kqueue-based IOLoop to avoid incorrectly calling
the connect callback when the connection was refused.
Closes #223.
Ben Darnell [Tue, 22 Feb 2011 21:01:05 +0000 (13:01 -0800)]
Read a fixed number of bytes for wsgi input, since some wsgi containers
do not signal EOF.
Ben Darnell [Tue, 22 Feb 2011 20:14:32 +0000 (12:14 -0800)]
Move USE_SIMPLE_HTTPCLIENT environment check out of curl_httpclient
Ben Darnell [Tue, 22 Feb 2011 19:45:48 +0000 (11:45 -0800)]
Implement synchronous HTTPClient in terms of AsyncHTTPClient.
Move curl_httpclient.main to httpclient.py
Ben Darnell [Tue, 22 Feb 2011 19:32:01 +0000 (11:32 -0800)]
Fix imports
Ben Darnell [Tue, 22 Feb 2011 19:23:32 +0000 (11:23 -0800)]
Move request and response classes to httpclient.py
Ben Darnell [Tue, 22 Feb 2011 19:21:54 +0000 (11:21 -0800)]
Make tornado.escape.utf8 None-safe and use it in curl_httpclient.
Ben Darnell [Tue, 22 Feb 2011 19:09:22 +0000 (11:09 -0800)]
Rename httpclient to curl_httpclient
Ben Darnell [Tue, 22 Feb 2011 19:00:02 +0000 (11:00 -0800)]
Revert "Declare dependencies in setup.py for automatic installation."
This reverts commit
19f850e19b4e432e0faed630b748e58069214300 .
This turned out to be more trouble than it's worth, since it doesn't
interact well with external installations of pycurl (e.g. from a .deb).
These dependencies are going away soon anyway.
Ben Darnell [Sun, 20 Feb 2011 20:56:18 +0000 (12:56 -0800)]
Update version number to 1.2
Ben Darnell [Sun, 20 Feb 2011 20:49:53 +0000 (12:49 -0800)]
Document the fact that tornado can be installed with pip/etc.
Ben Darnell [Sun, 20 Feb 2011 20:33:00 +0000 (12:33 -0800)]
Check that the default certificates file exists in a unit test.
Ben Darnell [Sun, 20 Feb 2011 20:16:43 +0000 (12:16 -0800)]
Declare dependencies in setup.py for automatic installation.
Ben Darnell [Sat, 19 Feb 2011 23:57:12 +0000 (15:57 -0800)]
Add ca-certificates.crt as a data file in setup.py
Ben Darnell [Sat, 19 Feb 2011 23:39:27 +0000 (15:39 -0800)]
Track SSL handshake state separately from calling _add_io_state directly.
Calling _add_io_state would set a flag that immediately gets overwritten
in _handle_events when it sees that the application-level read/write
operations are idle. This happens to work with kqueue but not with epoll.
Ben Darnell [Sat, 19 Feb 2011 23:35:37 +0000 (15:35 -0800)]
Clear the Host header when following redirects
Ben Darnell [Sat, 19 Feb 2011 23:31:11 +0000 (15:31 -0800)]
Add more debugging options to command-line mode of simple_httpclient
Ben Darnell [Sat, 19 Feb 2011 22:59:39 +0000 (14:59 -0800)]
Call listen() on low-level socket test.
This is apparently required on linux but not on mac.
Ben Darnell [Sat, 19 Feb 2011 22:29:35 +0000 (14:29 -0800)]
Set both VERIFYPEER and VERIFYHOST according to the validate_cert setting.
Ben Darnell [Sat, 19 Feb 2011 21:58:56 +0000 (13:58 -0800)]
Fix a case where callbacks could be called more than once in error conditions.
Ben Darnell [Sat, 19 Feb 2011 21:43:33 +0000 (13:43 -0800)]
Don't call curl.unsetopt(pycurl.CAINFO) to reset CA certificates to default.
This doesn't work because it clobbers the default CA certs, causing all
certificates to be rejected. There doesn't seem to be any way to restore
the defaults, so just leave it untouched in the default case and document
the requirement that all requests use ca_certs if any do.
Ben Darnell [Sat, 19 Feb 2011 21:33:21 +0000 (13:33 -0800)]
Add logout link to authdemo for testing purposes.
Ben Darnell [Wed, 16 Feb 2011 21:36:50 +0000 (13:36 -0800)]
Document new behavior of XSRF tokens.
Ben Darnell [Wed, 16 Feb 2011 21:34:35 +0000 (13:34 -0800)]
Add linkify to the default template namespace.
Ben Darnell [Wed, 16 Feb 2011 21:21:40 +0000 (13:21 -0800)]
Use SO_REUSEADDR in low-level socket tests.
Ben Darnell [Wed, 16 Feb 2011 21:05:23 +0000 (13:05 -0800)]
Update docs for simple_httpclient.
Ben Darnell [Wed, 16 Feb 2011 19:52:06 +0000 (11:52 -0800)]
Revert "Undo documentation changes from the introduction of Application.listen()."
This reverts commit
2d42c18c36bb9bd6ff67dc71786cd6ce9332dd31 .
Ben Darnell [Tue, 15 Feb 2011 22:46:16 +0000 (14:46 -0800)]
Don't modify the IOStream write buffer if the previous socket.send
returned EWOULDBLOCK.
This satisfies openssl's requirement that the write buffer address
not change between calls to send.
Ben Darnell [Tue, 15 Feb 2011 22:25:38 +0000 (14:25 -0800)]
Change IOStream._read_buffer from cStringIO to a deque.
This change is mainly for consistency with the _write_buffer change.
Ben Darnell [Tue, 15 Feb 2011 22:18:34 +0000 (14:18 -0800)]
Change IOStream._write_buffer from cStringIO to a deque.
This lays the groundwork for a future change to fix an issue with openssl.
Ben Darnell [Tue, 15 Feb 2011 22:14:37 +0000 (14:14 -0800)]
Add utility method for dealing with deques of strings, in preparation
for moving from cStringIO to deques for IOStream buffers.
Ben Darnell [Tue, 15 Feb 2011 04:51:19 +0000 (20:51 -0800)]
Add follow_redirects support to SimpleAsyncHTTPClient.
Ben Darnell [Tue, 15 Feb 2011 04:19:58 +0000 (20:19 -0800)]
Last part of certificate validation: check that the hostname matches.
Ben Darnell [Tue, 15 Feb 2011 04:14:43 +0000 (20:14 -0800)]
Add ssl.match_hostname function backported from Python 3.2.
https://bitbucket.org/brandon/backports.ssl_match_hostname
Ben Darnell [Tue, 15 Feb 2011 04:10:27 +0000 (20:10 -0800)]
Detect the connection being closed by the server in SimpleAsyncHTTPClient.
Ben Darnell [Tue, 15 Feb 2011 04:05:47 +0000 (20:05 -0800)]
Make certificate validation optional with an HTTPRequest parameter
for consistency between curl and simple HTTPClients.
Ben Darnell [Tue, 15 Feb 2011 03:48:25 +0000 (19:48 -0800)]
Part 1 of certificate validation: Require that the cert be signed by a CA.
Ben Darnell [Tue, 15 Feb 2011 03:23:56 +0000 (19:23 -0800)]
In SSLIOStream, delay the connect_callback until the SSL handshake finishes.
Ben Darnell [Tue, 15 Feb 2011 02:58:02 +0000 (18:58 -0800)]
Add a set of default SSL CA certificates for use with SimpleAsyncHTTPClient.
This data was copied from the Ubuntu package ca-certificates (and is
ultimately derived for the most part from Mozilla). Its license is
MPL/GPL, unlike the rest of tornado, but for an optional data file it
ought to be fine.
Ben Darnell [Mon, 6 Dec 2010 01:07:46 +0000 (17:07 -0800)]
Add a simple mechanism to override DNS lookups in SimpleAsyncHTTPClient.
Intended for use in SSL unittests, where we will need to make requests to
localhost using different domain names.
Ben Darnell [Sat, 12 Feb 2011 04:25:06 +0000 (20:25 -0800)]
Make @removeslash a no-op when applied to a request for '/'.
This prevents a redirect loop as browsers interpret an empty redirect
as a redirect to /.
Jon Parise [Sat, 12 Feb 2011 01:52:12 +0000 (17:52 -0800)]
Removing the *.png pattern for the 'demos' line.
Because there aren't any .png files in the 'demos' hierarchy, this was causing
a warning when the 'egg_info' setup command was run.
Ben Darnell [Thu, 10 Feb 2011 01:09:57 +0000 (17:09 -0800)]
Check XSRF tokens on all non-idempotent requests instead of just POST.
Ben Darnell [Thu, 10 Feb 2011 01:01:53 +0000 (17:01 -0800)]
Undo documentation changes from the introduction of Application.listen().
The examples given do not work in the 1.1.1 release. This change should be
reverted when 1.2 is released and the new examples work.
Ben Darnell [Wed, 9 Feb 2011 06:53:59 +0000 (22:53 -0800)]
Merge commit 'v1.1.1'
Conflicts:
setup.py
Ben Darnell [Wed, 9 Feb 2011 06:43:07 +0000 (22:43 -0800)]
Tag release 1.1.1
Ben Darnell [Wed, 9 Feb 2011 06:29:40 +0000 (22:29 -0800)]
BACKWARDS-INCOMPATIBLE: Fix XSRF security vulnerability.
This is a backwards-incompatible change. Applications that previously
relied on a blanket exception for XMLHTTPRequest may need to be modified
to explicitly include the XSRF token when making ajax requests.
The tornado chat demo application demonstrates one way of adding this
token (specifically the function postJSON in demos/chat/static/chat.js).
More information about this change and its justification can be found at
http://www.djangoproject.com/weblog/2011/feb/08/security/
http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails
Closes #214.
Ben Darnell [Mon, 7 Feb 2011 02:58:58 +0000 (18:58 -0800)]
Fix error in docstring.
Closes #209.
Ben Darnell [Mon, 7 Feb 2011 02:42:04 +0000 (18:42 -0800)]
Add a test to verify reasonable behavior when HTTPS server is sent non-SSL request.
Prompted by issue #211.
Ben Darnell [Tue, 25 Jan 2011 20:15:37 +0000 (12:15 -0800)]
Use request.uri instead of request.path in websocket handshake.
Closes #208.
Ben Darnell [Tue, 25 Jan 2011 20:02:11 +0000 (12:02 -0800)]
Update example in XSRF section.
Login forms don't actually need XSRF protection, so use a message-posting
form instead.