Re: Apache dropping Content-Length header for HEAD responses where Content-Length is 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 2, 2023 at 11:12 AM Antony Stone
<Antony.Stone@xxxxxxxxxxxxxxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux