Re: File types
system administration account <[email protected]> Fri, 20 Jun 2003 17:50:04 +0200
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Message-ID | <[email protected]> |
On 2003-06-20 10:11:32 -0500, David Phillips wrote: > Henrique Araujo writes: > > How can I control file types of files served by httpd? For instance, I > > have the file FILE.GZ, which is an application/x-gzip type, but > > publicfile serves it as text/html, thus preventing browsers from > > opening the 'Save as' dialog. > > Name it "FILE.gz" and it will have the correct Content-Type. He explicitly said he didn't want to do that. So we have to tell him the alternatives, which are: (1) rename FILE.GZ to FILE.GZ.application=x-gzip (2) patch the source code to publicfile to treat .GZ like .gz A variation on (2) would be to make publicfile case-insensitive throughout. Many filesystems in common use already have that property. And related experience in other areas (such as email address local-parts) has shown case-sensitivity to be a mixed blessing at best. Of course by the same token Mr. Araujo shouldn't insist on preserving the case of downloaded file names in the first place.