diff options
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/client.py b/django/test/client.py index 776410cefa..d961c2c282 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -401,7 +401,7 @@ class RequestFactory: } if data: r.update({ - 'CONTENT_LENGTH': len(data), + 'CONTENT_LENGTH': str(len(data)), 'CONTENT_TYPE': content_type, 'wsgi.input': FakePayload(data), }) |
