On Thu, Feb 2, 2023 at 11:12 AM Antony Stone
<antony.st...@apache.open.source.it> wrote:
>
> On Thursday 02 February 2023 at 11:02:26, Piotr Dobrogost wrote:
>
> > Hi,
> >
> > On freshly installed Apache 2.4.52 on Fedora with default
> > configuration I'm observing that for HEAD response the Content-Length
> > header is not being sent for empty files
>
> Content-length is not a required field for Head responses.
>
> https://www.rfc-editor.org/rfc/rfc9110#section-8.6

Ok, but for non-empty files Apache does send Content-Length header in
HEAD responses.
Why does it not send it for empty files?
Treating empty files differently from non-empty files in this case
does not make sense.

Regards,
Piotr Dobrogost

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to