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.
This commit is contained in:
Max Kellermann
2010-10-03 16:22:03 +02:00
parent e3f4c7b91c
commit 5923cfcde3
2 changed files with 2 additions and 1 deletions

View File

@@ -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