httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50624] New: Patch to add WebM and WebP mime types.
Date Thu, 20 Jan 2011 22:06:47 GMT

           Summary: Patch to add WebM and WebP mime types.
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Runtime Config

Created an attachment (id=26524)
 --> (
Patch adding WebP and WebM MIME types

Currently, Apache 1.3.x and 2.x default configuration doesn't set MIME types
for WebM and WebP files. This patches adds then to mime.types and magic. Also
in magic, the patch removes the 'audio/unknown' result for files beginning with
RIFF. This is because:
- It didn't work - if the file contained both the RIFF and WAVE magic string,
the resulting MIME type was "audio/unknown\210yt\232r+audio/x-wav" (also, for
the newly added WebP magic, the result was wrong in a similar way)
- I'm not sure if this was a good idea - the RIFF containers are also used for
AVI videos and ANI animated cursor.

The patch applies cleanly to HEAD and branch 2.2.x. It applies with a small
fuzz to the 1.3.x branch, but I'll also post a clean patch for 1.3.x.

Tested on Apache 2.2.3 and 1.3.x head. Demo:

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message