]> granicus.if.org Git - apache/commitdiff
Fix some problems with the recent port of RemoveEncoding and
authorJeff Trawick <trawick@apache.org>
Mon, 18 Sep 2000 12:17:29 +0000 (12:17 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 18 Sep 2000 12:17:29 +0000 (12:17 +0000)
RemoveType to 2.0.  (--with-maintainer-mode works wonders!)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86248 13f79535-47bb-0310-9956-ffa450edef68

modules/http/mod_mime.c

index 49c3457c90c7f2b12d3fcb121bdc45a16697ce7b..1e81ea824822550449cecfd085409480d28e1373 100644 (file)
@@ -288,7 +288,7 @@ static const char *remove_handler(cmd_parms *cmd, void *m, const char *ext)
  * Just like the previous function, except that it records encoding
  * associations to be undone.
  */
-static const char *remove_encoding(cmd_parms *cmd, void *m, char *ext)
+static const char *remove_encoding(cmd_parms *cmd, void *m, const char *ext)
 {
     mime_dir_config *mcfg = (mime_dir_config *) m;
     attrib_info *suffix;
@@ -305,7 +305,7 @@ static const char *remove_encoding(cmd_parms *cmd, void *m, char *ext)
  * Similar to the previous functions, except that it deals with filename
  * suffix/MIME-type associations.
  */
-static const char *remove_type(cmd_parms *cmd, void *m, char *ext)
+static const char *remove_type(cmd_parms *cmd, void *m, const char *ext)
 {
     mime_dir_config *mcfg = (mime_dir_config *) m;
     attrib_info *suffix;
@@ -347,9 +347,9 @@ AP_INIT_TAKE1("ForceType", ap_set_string_slot_lower,
      "a media type"),
 AP_INIT_ITERATE("RemoveHandler", remove_handler, NULL, OR_FILEINFO,
      "one or more file extensions"),
-AP_INIT_ITERATE("RemoveEncoding", remove_handler, NULL, OR_FILEINFO,
+AP_INIT_ITERATE("RemoveEncoding", remove_encoding, NULL, OR_FILEINFO,
      "one or more file extensions"),
-AP_INIT_ITERATE("RemoveType", remove_handler, NULL, OR_FILEINFO,
+AP_INIT_ITERATE("RemoveType", remove_type, NULL, OR_FILEINFO,
      "one or more file extensions"),
 AP_INIT_TAKE1("SetHandler", ap_set_string_slot_lower, 
      (void *)XtOffsetOf(mime_dir_config, handler), OR_FILEINFO,