Some small optimization: - use 'ap_cstr_casecmpn' instead of 'strncasecmp' - use 'apr_table_setn' when parameters are constant - avoid some memory allocation if the module can not handle a request