From c5e3ad4a7adf0594c61467e1dcf76f8a5291b015 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 27 Jun 2019 09:06:56 +0000 Subject: [PATCH] * docs/conf/magic: Allow mod_mime_magic to return "audio/x-wav" for WAV files, and omit returning "audio/unknown" for other RIFF format files. Having a MIME type defined on a continuation line *and* the preceding top-level match breaks mod_mime_magic, which treats the second result "printed" as the MIME encoding. Neither audio/x-wav nor audio/unknown are IANA registered, though Firefox and Chrome both appear to recognize the former. Since the RIFF format can contain non-audio media, returning audio/unknown as a fallback for all RIFF files appears to be bogus anyway. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Submitted by: Àngel Ollé Blázquez git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862200 13f79535-47bb-0310-9956-ffa450edef68 --- docs/conf/magic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf/magic b/docs/conf/magic index 7c56119e9a..bc891d93e6 100644 --- a/docs/conf/magic +++ b/docs/conf/magic @@ -87,7 +87,7 @@ # Microsoft WAVE format (*.wav) # [GRR 950115: probably all of the shorts and longs should be leshort/lelong] # Microsoft RIFF -0 string RIFF audio/unknown +0 string RIFF # - WAVE format >8 string WAVE audio/x-wav # MPEG audio. -- 2.50.1