]> granicus.if.org Git - apache/commit
Simplify mod_dav's handler.
authorGreg Stein <gstein@apache.org>
Fri, 6 Sep 2002 00:26:10 +0000 (00:26 +0000)
committerGreg Stein <gstein@apache.org>
Fri, 6 Sep 2002 00:26:10 +0000 (00:26 +0000)
commit7125ae188e8db4f09f37cfe65e8cccb37c5bda57
tree4206afdcdf141af3bf28a40bf7a9434cf8a85da3
parenta72d9658e81f35787912e9d5a4506020214aa9aa
Simplify mod_dav's handler.

The old mechanism would jam a handler name in whenever DAV was
configured for a directory. i.e. there weren't really any tests other
than "is DAV handling this directory?" The name was just a marker
which was tested later.

The new mechanism simplies performs the test right in the handler.
This is now possible since all handlers are called (before, you *had*
to set your own name so that your handler would be called). Since the
test is actually quite straightforward, we actually gain overall: no
more fixups hook, and a couple integer comparisons (rather than a
string compare).

And hoo... the code is simpler, too.

This code has been verified with "litmus 0.8", my own little
regression script, and some hand testing of static pages and CGIs. DAV
continues to work, and it doesn't appear that the changes interfered
with other operation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96658 13f79535-47bb-0310-9956-ffa450edef68
modules/dav/main/mod_dav.c