diff options
| author | Christophe de Vienne <cdevienne@gmail.com> | 2013-02-22 16:06:10 +0100 |
|---|---|---|
| committer | Christophe de Vienne <cdevienne@gmail.com> | 2013-02-22 16:07:57 +0100 |
| commit | 622a24c377039ffe7a245e82894dea8bace062eb (patch) | |
| tree | d85a650253c94638ff6189b97440e71b827aa565 /webtest | |
| parent | 0aabab516aa24bcb31274dfd1928f30718771126 (diff) | |
| download | webtest-622a24c377039ffe7a245e82894dea8bace062eb.tar.gz | |
A copy of a webob.Request() cannot have content_length == -1. Removing the case.
Diffstat (limited to 'webtest')
| -rw-r--r-- | webtest/app.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/webtest/app.py b/webtest/app.py index a7e2d94..ea92d4d 100644 --- a/webtest/app.py +++ b/webtest/app.py @@ -524,8 +524,6 @@ class TestApp(object): req = url_or_req.copy() for name, value in req_params.items(): setattr(req, name, value) - if req.content_length == -1: - req.content_length = len(req.body) req.environ['paste.throw_errors'] = True for name, value in self.extra_environ.items(): req.environ.setdefault(name, value) |
