Opened 6 years ago

Last modified 8 months ago

#29800 new Bug

Django hangs when Content-Length hangs — at Initial Version

Reported by: Alexander Charykov Owned by: nobody
Component: HTTP handling Version: 2.1
Severity: Normal Keywords:
Cc: Herbert Fortes, Sam Kuffer, Natalia Bidart Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When sending incorrect content-length header to application, django hangs on reading request.body.

Steps to reproduce:

curl -v -X POST -H "Accept: */*" -H "Content-Length: 22" -d "1" http://127.0.0.1:8000

with following handler:

def index(request):
    return HttpResponse(content=request.body)

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top