php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #67416 Add mime-type for Opus audio
Submitted: 2014-06-10 14:20 UTC Modified: 2014-06-11 01:55 UTC
From: jonkoops at gmail dot com Assigned: aharvey (profile)
Status: Suspended Package: Built-in web server
PHP Version: 5.5.13 OS: Mac OS X 10.9
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-06-10 14:20 UTC] 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`

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-11 01:55 UTC] aharvey@php.net
-Status: Open +Status: Suspended -Assigned To: +Assigned To: aharvey
 [2014-06-11 01:55 UTC] aharvey@php.net
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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu May 23 23:01:26 2019 UTC