#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): something like: {{{#!python def cleanup_headers(self): super().cleanup_headers() if ( self.environ["REQUEST_METHOD"] == "HEAD" and "Content-Length" in self.headers and str(self.headers["Content-Length"]) == "0" ): del self.headers["Content-Length"] }}} -- Ticket URL: <https://code.djangoproject.com/ticket/35051#comment:6> 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/0107018c84352126-3ba8f982-cbb1-4375-bff6-ecd5057c39bd-000000%40eu-central-1.amazonses.com.