** ### this isn't quite right... taking over the response can break
** ### things like mod_negotiation. need to look into this some more.
*/
- if (!conf->handle_get)
+ if (!conf->handle_get) {
return DECLINED;
+ }
}
/* ### we should (instead) trap the ones that we DO understand */
static void register_hooks(void)
{
ap_hook_post_config(dav_init_handler, NULL, NULL, AP_HOOK_MIDDLE);
- ap_hook_type_checker(dav_type_checker, NULL, NULL, AP_HOOK_MIDDLE);
+ ap_hook_type_checker(dav_type_checker, NULL, NULL, AP_HOOK_FIRST);
}
/*---------------------------------------------------------------------------
#define DAV_DEBUG 1
#define DEBUG_CR "\n"
#define DBG0(f) ap_log_error(APLOG_MARK, \
- APLOG_ERR|APLOG_NOERRNO, NULL, (f))
+ APLOG_ERR|APLOG_NOERRNO, 0, NULL, (f))
#define DBG1(f,a1) ap_log_error(APLOG_MARK, \
- APLOG_ERR|APLOG_NOERRNO, NULL, f, a1)
+ APLOG_ERR|APLOG_NOERRNO, 0, NULL, f, a1)
#define DBG2(f,a1,a2) ap_log_error(APLOG_MARK, \
- APLOG_ERR|APLOG_NOERRNO, NULL, f, a1, a2)
+ APLOG_ERR|APLOG_NOERRNO, 0, NULL, f, a1, a2)
#define DBG3(f,a1,a2,a3) ap_log_error(APLOG_MARK, \
- APLOG_ERR|APLOG_NOERRNO, NULL, f, a1, a2, a3)
+ APLOG_ERR|APLOG_NOERRNO, 0, NULL, f, a1, a2, a3)
#else
#undef DAV_DEBUG
#define DEBUG_CR ""