Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
9f85a1e7
Commit
9f85a1e7
authored
Feb 11, 2003
by
Michael Smith
Browse files
Now that it's been completely officially assigned, use application/ogg instead
of application/x-ogg svn path=/trunk/icecast/; revision=4336
parent
a3ee7cf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/format.c
View file @
9f85a1e7
...
@@ -29,7 +29,9 @@
...
@@ -29,7 +29,9 @@
format_type_t
format_get_type
(
char
*
contenttype
)
format_type_t
format_get_type
(
char
*
contenttype
)
{
{
if
(
strcmp
(
contenttype
,
"application/x-ogg"
)
==
0
)
if
(
strcmp
(
contenttype
,
"application/x-ogg"
)
==
0
)
return
FORMAT_TYPE_VORBIS
;
return
FORMAT_TYPE_VORBIS
;
/* Backwards compatibility */
else
if
(
strcmp
(
contenttype
,
"application/ogg"
)
==
0
)
return
FORMAT_TYPE_VORBIS
;
/* Now blessed by IANA */
else
if
(
strcmp
(
contenttype
,
"audio/mpeg"
)
==
0
)
else
if
(
strcmp
(
contenttype
,
"audio/mpeg"
)
==
0
)
return
FORMAT_TYPE_MP3
;
return
FORMAT_TYPE_MP3
;
else
else
...
@@ -40,7 +42,7 @@ char *format_get_mimetype(format_type_t type)
...
@@ -40,7 +42,7 @@ char *format_get_mimetype(format_type_t type)
{
{
switch
(
type
)
{
switch
(
type
)
{
case
FORMAT_TYPE_VORBIS
:
case
FORMAT_TYPE_VORBIS
:
return
"application/
x-
ogg"
;
return
"application/ogg"
;
break
;
break
;
case
FORMAT_TYPE_MP3
:
case
FORMAT_TYPE_MP3
:
return
"audio/mpeg"
;
return
"audio/mpeg"
;
...
...
src/fserve.c
View file @
9f85a1e7
...
@@ -315,7 +315,7 @@ static char *fserve_content_type(char *path)
...
@@ -315,7 +315,7 @@ static char *fserve_content_type(char *path)
else
{
else
{
/* Fallbacks for a few basic ones */
/* Fallbacks for a few basic ones */
if
(
!
strcmp
(
ext
,
"ogg"
))
if
(
!
strcmp
(
ext
,
"ogg"
))
return
"application/
x-
ogg"
;
return
"application/ogg"
;
else
if
(
!
strcmp
(
ext
,
"mp3"
))
else
if
(
!
strcmp
(
ext
,
"mp3"
))
return
"audio/mpeg"
;
return
"audio/mpeg"
;
else
if
(
!
strcmp
(
ext
,
"html"
))
else
if
(
!
strcmp
(
ext
,
"html"
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment