--- static_file.orig Thu Oct 30 13:08:08 2003 +++ static_file Mon Nov 24 22:50:08 2003 @@ -21,9 +21,15 @@ # files whose filename extension is in the following list # will be ignored in dynamic rendering @exclude_extensions_dynamic = (); + # files whose filename extension is in the following list # will be ignored in static rendering @exclude_extensions_static = ("$blosxom::file_extension"); + +# This is the MIME type that will be used if nothing else +# can be found +$default_type="text/plain"; + # -------------------------------- sub start { @@ -49,7 +55,7 @@ header( { -type=> ( $mimetype ) ? $mimetype->mediaType . "/" . $mimetype->subType : - "application/octet-stream" } ); + $default_type } ); my @data = stat( $fileaccess ); # forge some HTTP header stuff print("Accept-Ranges: bytes\nContent-Length: $data[7]\n$blosxom::header");