From 5923cfcde357ca57547884819f508bff7a949620 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 3 Oct 2010 16:22:03 +0200 Subject: [PATCH] output/httpd: MIME type audio/ogg for Ogg Vorbis RFC 5334 10.3 defines the MIME type "audio/ogg". We could use "application/ogg" as well, but we know for sure that we only emit audio data. --- NEWS | 1 + src/output/httpd_output_plugin.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ff6716a0e..a0babe955 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ver 0.15.13 (2010/??/??) * output_thread: fix race condition after CANCEL command * output: - httpd: fix random data in stream title + - httpd: MIME type audio/ogg for Ogg Vorbis * input: - rewind: update MIME not only once - rewind: enable for MMS diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c index 9fdf46456..026e8d9d8 100644 --- a/src/output/httpd_output_plugin.c +++ b/src/output/httpd_output_plugin.c @@ -70,7 +70,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format, } if (strcmp(encoder_name, "vorbis") == 0) - httpd->content_type = "application/x-ogg"; + httpd->content_type = "audio/ogg"; else if (strcmp(encoder_name, "lame") == 0) httpd->content_type = "audio/mpeg"; else