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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to