Hi. Is it the intended behavior for wget to allow sending custom header lines with no value?

The following clears previous user-defined headers as described in the documentation:
--header=

The following both send a header with no value:
--header="Accept-Encoding:"
--header="Accept-Encoding: "

This gets an "Invalid header" error from wget:
--header="Accept-Encoding"

I noticed this behavior while trying to disable some of wget's automatically generated headers (which apparently isn't possible except for User-Agent via --user-agent=).

Thanks in advance for your help.

Greg


Reply via email to