From nobody@hyperreal.com Wed Jun 4 07:34:04 1997 Received: (from nobody@localhost) by hyperreal.com (8.8.5/8.8.5) id HAA11568; Wed, 4 Jun 1997 07:34:04 -0700 (PDT) Message-Id: <199706041434.HAA11568@hyperreal.com> Date: Wed, 4 Jun 1997 07:34:04 -0700 (PDT) From: Jan Bredereke Reply-To: bredereke@informatik.uni-kl.de To: apbugs@hyperreal.com Subject: Incorrect content-type for `foo.ps.gz' and 'foo.ps.Z' files X-Send-Pr-Version: 3.2 >Number: 672 >Category: mod_mime >Synopsis: Incorrect content-type for `foo.ps.gz' and 'foo.ps.Z' files >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Jun 4 07:40:01 1997 >Last-Modified: Sun Jun 8 20:34:25 PDT 1997 >Originator: bredereke@informatik.uni-kl.de >Organization: >Release: 1.1.3 >Environment: Any >Description: (See also PR#665) For any file with an extension such as `.ps.gz', Apache returns Content-Type: application/x-gzip Content-Encoding: x-gzip This is incorrect. The content-type should be application/postscript. >How-To-Repeat: >Fix: PR#665 proposes a source patch. Alternatively, we can work around it if we just change the (distribution) configuration files: In file 'mime.types', we comment out the lines for 'application/x-gzip', and also for 'application/x-compress'. They do not describe contents but encondings. See also the 'AddEncoding' entries in file 'srm.conf >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Sun Jun 8 20:34:25 PDT 1997 State-Changed-Why: Yes, the solution you propose is the more correct one. The source patch suggested behaves incorrectly under some conditions. Note that the content-type for .gz files was taken out of the distribution mime.types file a long time in 1.2bsomething. >Unformatted: