diff options
| author | Tim Graham <timograham@gmail.com> | 2016-08-03 12:46:57 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-03 14:01:08 -0400 |
| commit | dcebeea2703322bc53c511bf3cff9e3c2e04d802 (patch) | |
| tree | 3985a8cf6eac12c37327ba97ddaff507b8e3bb83 /tests/requests | |
| parent | 348406c381f8f574bcc4c74c62279060010ae35f (diff) | |
[1.10.x] Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.
Backport of 5c63b3e5a797102d915e1683971517f747a28013 from master
Diffstat (limited to 'tests/requests')
| -rw-r--r-- | tests/requests/test_data_upload_settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/requests/test_data_upload_settings.py b/tests/requests/test_data_upload_settings.py index 8855e13336..f60f1850ea 100644 --- a/tests/requests/test_data_upload_settings.py +++ b/tests/requests/test_data_upload_settings.py @@ -104,6 +104,10 @@ class DataUploadMaxMemorySizeGetTests(SimpleTestCase): with self.settings(DATA_UPLOAD_MAX_MEMORY_SIZE=None): self.request.body + def test_empty_content_length(self): + self.request.environ['CONTENT_LENGTH'] = '' + self.request.body + class DataUploadMaxNumberOfFieldsGet(SimpleTestCase): |
