]> granicus.if.org Git - apache/commitdiff
Improve documentation of "DefaultType None"
authorNick Kew <niq@apache.org>
Mon, 15 Oct 2007 18:37:20 +0000 (18:37 +0000)
committerNick Kew <niq@apache.org>
Mon, 15 Oct 2007 18:37:20 +0000 (18:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@584842 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index 792b163c7cbff49ad2872c978f60fc6ad0ae22b7..bf4f6d5b9d943ff9d486b537e57915e8535ce858 100644 (file)
@@ -545,8 +545,9 @@ server cannot determine a type in any other way</description>
     document whose type cannot be determined by its <glossary
     ref="mime-type">MIME types</glossary> mappings.</p>
 
-    <p>The server must inform the client of the content-type of the
-    document, so in the event of an unknown type it uses the
+    <p>The server SHOULD inform the client of the content-type of the
+    document.  If the server is unable to determine this by normal
+    means, it will set it to the configured
     <code>DefaultType</code>. For example:</p>
 
     <example>
@@ -556,17 +557,15 @@ server cannot determine a type in any other way</description>
     <p>would be appropriate for a directory which contained many GIF
     images with filenames missing the <code>.gif</code> extension.</p>
 
-    <p>Sometimes it may be better to omit the MIME type altogether if it
-    cannot be determined by the server.  This can be accomplished using</p>
+    <p>In cases where it can neither be determined by the server nor
+    the administrator (e.g. a proxy), it is preferable to omit the MIME
+    type altogether rather than provide information that may be false.
+    This can be accomplished using</p>
     <example>
       DefaultType None
     </example>
     <p>DefaultType None is only available in httpd-2.2.7 and later.</p>
 
-    <p>This can be suppressed by setting <code>DefaultType None</code>.
-    With this setting, Apache will omit <em>any</em> Content-Type
-    header if it not able to determine the correct MIME type.</p>
-
     <p>Note that unlike <directive
     module="core">ForceType</directive>, this directive only
     provides the default mime-type. All other mime-type definitions,