* status: new => closed
* resolution: => needsinfo
Comment:
Thanks for the report but it's not clear what issue you are reporting with
Django. Feel free to update the ticket with more context; closing for now
pending more information.
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by James Pic):
Do you want a description like this?
> Currently, Django sends content in responses to HEAD requests.
> Django MUST NOT send content in responses to HEAD requests, as per
RFC9110;
> The HEAD method is identical to GET except that the server MUST NOT send
content in the response.
> https://www.rfc-editor.org/rfc/rfc9110.html#name-head
Is that better or do you think we need more?
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:3>
* Attachment "tcpdump.txt" added.
--
Ticket URL: <https://code.djangoproject.com/ticket/34519>
Old description:
> > 9.3.2. HEAD
> > The HEAD method is identical to GET except that the server MUST NOT
> send content in the response.
> https://www.rfc-editor.org/rfc/rfc9110.html#name-head
New description:
Responses to HEAD requests must not send content as per RFC9110
> 9.3.2. HEAD
> The HEAD method is identical to GET except that the server MUST NOT send
content in the response.
https://www.rfc-editor.org/rfc/rfc9110.html#name-head
Currently, Django sends content in response to HEAD requests.
Django *MUST NOT* send content in response for HEAD requests.
Demonstration:
{{{
$ django-admin startproject test
$ cd test && ./manage.py runserver
# tcpdump -vv -s0 -A -i lo port 8000 &> tcpdump.txt
$ curl -I localhost:8000
}}}
tcpdump.txt attached, it shows Django sends content in the HEAD response
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:4>
Comment (by James Pic):
Updated the description, I think it's now pretty understandable even with
little understanding of Django and HTTP ;)
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:5>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:6>
* resolution: needsinfo => duplicate
Comment:
Duplicate of #28054 (fixed in 8acc433e415cd771f69dfe84e57878a83641e78b).
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:7>
Comment (by James Pic):
Thanks you very much!
--
Ticket URL: <https://code.djangoproject.com/ticket/34519#comment:8>