From: Joe Orton Date: Thu, 27 Jun 2019 09:06:56 +0000 (+0000) Subject: * docs/conf/magic: Allow mod_mime_magic to return "audio/x-wav" for X-Git-Tag: 2.5.0-alpha2-ci-test-only~1997 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e3ad4a7adf0594c61467e1dcf76f8a5291b015;p=thirdparty%2Fapache%2Fhttpd.git * 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. Submitted by: Àngel Ollé Blázquez git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862200 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/conf/magic b/docs/conf/magic index 7c56119e9a5..bc891d93e66 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.