Commits

Author Commit Message Labels Comments Date
garyvdm
Add six module to install_requires.
Sergey Schetinin
import rfc822 -> import email.utils
Sergey Schetinin
fix test on Jython (did you know that 'abc'.encode('utf-16') produces different strings on Jython and CPython?)
Sergey Schetinin
* change del res.body semantics so that it doesn't make the response invalid, but only removes the response body * deprecate response.ubody / unicode_body in favour of new .text attribute (the old names will be removed in 1.3 or even later)
Sergey Schetinin
Added tag 1.1b2 for changeset 803aefef458c
Sergey Schetinin
version 1.1b2
Tags
1.1b2
Sergey Schetinin
update news
Sergey Schetinin
add webob.__version__ ( https://bitbucket.org/ianb/webob/issue/16 )
Sergey Schetinin
mark statements lacking coverage
Sergey Schetinin
fix disconnection detection for more cases in .readline(); improve test coverage
Sergey Schetinin
When the client disconnects while sending request body, most servers just start returning '' from env['wsgi.input'].read(..) and similar. This means the apps get truncated requests. This commit makes req.body_file wrap the input stream in a proxy that detects such conditions and raises a DisconnectError exception while reading. This is used (and tested) to make sure req.body, req.POST, req.copy() and other request methods and properties do not result in truncated request bodies or form dictionaries, but raise an error instead. The tests use actual wsgiref server to send trun…
Sergey Schetinin
use __test__ attribute for skipping test_in_wsgiref.py on py2.5; reorder code a bit
Sergey Schetinin
refactor wsgiref tests to start just one server and use ctx management
Sergey Schetinin
make req.copy_body() not trust content-length as much + tests
Sergey Schetinin
syntax typos
Sergey Schetinin
change req.decode_param_maes default to True, warn about future deprecation
Sergey Schetinin
edit depreaction message
Sergey Schetinin
mark req.str_* for deprecation in 1.2
Sergey Schetinin
fix tests (sort POST dict in _encode_multipart)
Sergey Schetinin
fix test (dict iteration order)
Sergey Schetinin
make _encode_multiparts generate boundary if necessary
Sergey Schetinin
Merged in riffm/webob (pull request #3)
Sergey Schetinin
* make sure that for methods like GET and DELETE, which usually don't have a body, if the body is set, req.is_body_readable actually becomes true * fix doctests
Ian Bicking
Remove restrictions on request methods that are allowed to have a body. The HTTP BIS specification indicates that request bodies are generally allowed in these cases, though for methods like GET and DELETE they have no defined meaning. http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-15#section-3.3 The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's header …
Ian Bicking
Automated merge with ssh://bitbucket.org/ianb/webob
Ian Bicking
Automated merge with ssh://bitbucket.org/ianb/webob
Ian Bicking
make wsgify.middleware work with non-WSGI (req-taking) functions
Sergey Schetinin
increase block_size for resp.body_file to 256Kb
Sergey Schetinin
make Response().body_file settable. usage: Response(body_file=open('foo.bin'), content_type=...). credit for the idea: mcdonc
Sergey Schetinin
cookies: handle unicode names better (preparing for py3 compat)
  1. Prev
  2. Next