}
static const char *cache_negotiated_docs(cmd_parms *cmd, void *dummy,
- char *dummy2)
+ int arg)
{
void *server_conf = cmd->server->module_config;
- ap_set_module_config(server_conf, &negotiation_module, "Cache");
+ ap_set_module_config(server_conf, &negotiation_module,
+ (arg ? "Cache" : NULL));
return NULL;
}
static const command_rec negotiation_cmds[] =
{
- {"CacheNegotiatedDocs", cache_negotiated_docs, NULL, RSRC_CONF, NO_ARGS,
- "no arguments (either present or absent)"},
+ {"CacheNegotiatedDocs", cache_negotiated_docs, NULL, RSRC_CONF, FLAG,
+ "Either 'on' or 'off' (default)"},
{"LanguagePriority", set_language_priority, NULL, OR_FILEINFO, ITERATE,
"space-delimited list of MIME language abbreviations"},
{NULL}