Req #67416 [Opn->Sus]: Add mime-type for Opus audio

From: Date: Wed, 11 Jun 2014 01:55:47 +0000
Subject: Req #67416 [Opn->Sus]: Add mime-type for Opus audio
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186145@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67416&edit=1 ID: 67416 Updated by: aharvey@php.net Reported by: jonkoops at gmail dot com Summary: Add mime-type for Opus audio -Status: Open +Status: Suspended Type: Feature/Change Request Package: Built-in web server Operating System: Mac OS X 10.9 PHP Version: 5.5.13 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: I've reimplemented the CLI Web server MIME type code on master to use the Apache httpd mime.types file for its mappings (which is the de facto standard for this), but right now it doesn't have an extension mapped for audio/opus (or audio/ogg; codecs=opus). Rather than hacking up our code to have special cases, I think it would be better if you asked the httpd maintainers to add the relevant line to mime.types: this would benefit many other software packages besides PHP. Marking suspended for now. Previous Comments: ------------------------------------------------------------------------ [2014-06-10 14:20:49] jonkoops at gmail dot com Description: ------------ When serving .opus files the Content-Type header should be set to the correct mime-type audio/ogg; codecs=opus. Test script: --------------- php -S localhost:8080 curl -I localhost:8080/test.opus Expected result: ---------------- Content-Type header should be audio/ogg; codecs=opus Actual result: -------------- Content-Type header is application/octet-stream ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67416&edit=1

« previous php.bugs (#186145) next »