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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC