httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50624] New: Patch to add WebM and WebP mime types.
Date Thu, 20 Jan 2011 22:06:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50624

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mikolajz@google.com


Created an attachment (id=26524)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?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:
http://www.mikolaj.zalewski.pl/test/test-webp.webp
http://www.mikolaj.zalewski.pl/test/test-webp.noext
http://www.mikolaj.zalewski.pl/test/test-webm.webm
http://www.mikolaj.zalewski.pl/test/test-webm.noext

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message