httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: cvs commit: httpd-2.0/modules/http mod_mime.c
Date Tue, 14 Aug 2001 04:04:37 GMT
>   Index: mod_mime.c
>   ===================================================================

>        /* Always drop the path leading up to the file name.
>         */
>        if ((fn = strrchr(r->filename, '/')) == NULL)
>            fn = r->filename;
>        else
>            ++fn;
>   +    /* The exception list keeps track of those filename components that
>   +     * are not associated with extensions indicating metadata.
>   +     * The base name is always the first exception (i.e., "txt.html" has
>   +     * a basename of "txt" even though it might look like an extension).

Here's an observation going back to 1.3, and folk's disgruntled reactions to
the README and HEADER files not working correctly when the DefaultType is set
to application/octet-stream.

Back in 1.3, the first element, *including* the leading slash, was processed.

In theory, setting up a AddType text/plain /HEADER /README might have worked
(I haven't tested the theory, for several other reasons it's probably broken
anyways on 1.3.)

Is this useful to allow an AddType/Icon/Description/Handler for a /foo element,
where the user has no file extension?  Do we want to 'restore' this undocumented


View raw message