Changes between Initial Version and Version 4 of Ticket #34519
- Timestamp:
- Apr 26, 2023, 11:07:25 AM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34519
- Property Summary HEAD responses must not return any content → Don't send content in responses to HEAD requests
- Property Resolution → needsinfo
- Property Status new → closed
-
Ticket #34519 – Description
initial v4 1 Responses to HEAD requests must not send content as per RFC9110 2 1 3 > 9.3.2. HEAD 2 4 > The HEAD method is identical to GET except that the server MUST NOT send content in the response. 5 3 6 https://www.rfc-editor.org/rfc/rfc9110.html#name-head 7 8 Currently, Django sends content in response to HEAD requests. 9 10 Django *MUST NOT* send content in response for HEAD requests. 11 12 Demonstration: 13 14 {{{ 15 $ django-admin startproject test 16 $ cd test && ./manage.py runserver 17 # tcpdump -vv -s0 -A -i lo port 8000 &> tcpdump.txt 18 $ curl -I localhost:8000 19 }}} 20 21 tcpdump.txt attached, it shows Django sends content in the HEAD response