| 1 | | After investigating, it seems the hang occurs because Django relies on the WSGI input stream (e.g., wsgiref or gunicorn), which blocks until the declared Content-Length is fully read. |
| 2 | | |
| 3 | | Since the WSGI spec does not define behavior for Content-Length larger than actual payload, and production setups typically rely on reverse proxies (e.g., nginx) to validate requests, this might not be appropriate to fix at Django level. |
| 4 | | |
| 5 | | I’d like to propose adding documentation explaining this behavior and recommending use of a reverse proxy or proper request validation. |