httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Why does SetHandler have ForceHandler semantics?
Date Tue, 12 May 2009 07:57:08 GMT
Inspired by Rich's feature request in PR#47184, I wondered why

<Directory /foo>
	SetHandler FooDefault
	AddHandler my-handler .foo .bar
</Directory>

doesn't have "specificity" semantics, wherein the AddHandler
overrides the SetHandler.

Turns out the latter gets set in core_override_type(), which is
a fixups hook, and unconditionally overrides anything set by
mod_mime or other module.  The semantics are "ForceType".

Why?

Does something bad happen if we check r->handler for what
some-other-module may have set before overriding it?

-- 
Nick Kew

Mime
View raw message