#35051: HEAD Responses Drop Headers ---------------------------------+------------------------------------ Reporter: Paul Bailey | Owner: nobody Type: Bug | Status: new Component: HTTP handling | Version: 5.0 Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+------------------------------------
Comment (by Paul Bailey): The use case for this is that your GET request has a large body and so you do not want to have to produce two large bodies, one for the HEAD, one for GET. Instead you want to match the exact headers a GET request would have without producing the body content for the HEAD request. This is essential for producing HTTP Range Requests in Django without a lot of overhead. https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests As per the docs above, a HTTP HEAD should return Content-Length -- Ticket URL: <https://code.djangoproject.com/ticket/35051#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018c842629e2-b05c3403-cdca-4b6f-a7e3-ee7cdb048aae-000000%40eu-central-1.amazonses.com.