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
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jonkoops at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC