Changes between Initial Version and Version 4 of Ticket #34519


Ignore:
Timestamp:
Apr 26, 2023, 11:07:25 AM (17 months ago)
Author:
James Pic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34519

    • Property Summary HEAD responses must not return any contentDon't send content in responses to HEAD requests
    • Property Resolutionneedsinfo
    • Property Status newclosed
  • Ticket #34519 – Description

    initial v4  
     1Responses to HEAD requests must not send content as per RFC9110
     2
    13> 9.3.2. HEAD
    24> The HEAD method is identical to GET except that the server MUST NOT send content in the response.
     5
    36https://www.rfc-editor.org/rfc/rfc9110.html#name-head
     7
     8Currently, Django sends content in response to HEAD requests.
     9
     10Django *MUST NOT* send content in response for HEAD requests.
     11
     12Demonstration:
     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
     21tcpdump.txt attached, it shows Django sends content in the HEAD response
Back to Top