|  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
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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jonkoops at gmail dot com
New email:
PHP Version: OS:


 [2014-06-10 14:20 UTC] jonkoops at gmail dot com
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`


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-11 01:55 UTC]
-Status: Open +Status: Suspended -Assigned To: +Assigned To: aharvey
 [2014-06-11 01:55 UTC]
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: Tue Apr 23 10:01:29 2024 UTC