diff options
| author | Tim Graham <timograham@gmail.com> | 2018-07-09 11:44:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-09 11:44:49 -0400 |
| commit | 5bea8d256dcf98f6346786f8a4804b84fee5da27 (patch) | |
| tree | ca7d640481b730f6c1b401d8d8ab56bcb2f9b7a0 /django/test/client.py | |
| parent | 857f860d5628d9d9a60eb0ab858647211fb8bb01 (diff) | |
Fixed #29553 -- Made test client set Content-Length header to a string rather than integer.
Diffstat (limited to 'django/test/client.py')
| -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), }) |
