Stuart Henderson, 2021-11-04 14:44:44 +0000:
> On 2021/11/04 08:27, Theo de Raadt wrote:
> 
> > Does any other program work this way?
> > 
> > Where you request one filename, and it gives you another?
> 
> Some of the webservers do, for language selection etc. Sometimes it's
> useful. Fortunately there are various options for more fully featured
> web servers if people need that, if I understand correctly the whole
> point of httpd was that it doesn't have many features.

For reference: it's called content negotiation. Apache httpd does it
(when configured) via request headers Accept, Accept-Language,
Accept-Charset, and Accept-Encoding. It appears to me, it does it in a
"static" manner too: it picks a file from a disk that fits a request
best. (See "Note on hyperlinks and naming conventions" at [1] for
examples.)

In my view, the proposed patch is a selective implementation of content
negotiation limited to the Accept-Encoding header only. Perhaps, the
conversation should be on whether httpd wants to have content
negotiation, to what extend, and, in what form.

[1] http://httpd.apache.org/docs/2.4/content-negotiation.html

Reply via email to