Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
8e0777a4
Commit
8e0777a4
authored
Aug 18, 2012
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow <stream-name> to override the icy-name: HTTP header, close
#1359
svn path=/icecast/trunk/icecast/; revision=18543
parent
7eb5e1b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/format.c
src/format.c
+16
-1
No files found.
src/format.c
View file @
8e0777a4
...
@@ -333,7 +333,22 @@ static int format_prepare_headers (source_t *source, client_t *client)
...
@@ -333,7 +333,22 @@ static int format_prepare_headers (source_t *source, client_t *client)
if
(
strcasecmp
(
var
->
name
,
"ice-password"
)
&&
if
(
strcasecmp
(
var
->
name
,
"ice-password"
)
&&
strcasecmp
(
var
->
name
,
"icy-metaint"
))
strcasecmp
(
var
->
name
,
"icy-metaint"
))
{
{
if
(
!
strncasecmp
(
"ice-"
,
var
->
name
,
4
))
if
(
!
strcasecmp
(
var
->
name
,
"ice-name"
))
{
ice_config_t
*
config
;
mount_proxy
*
mountinfo
;
config
=
config_get_config
();
mountinfo
=
config_find_mount
(
config
,
source
->
mount
);
if
(
mountinfo
&&
mountinfo
->
stream_name
)
bytes
=
snprintf
(
ptr
,
remaining
,
"icy-name:%s
\r\n
"
,
mountinfo
->
stream_name
);
else
bytes
=
snprintf
(
ptr
,
remaining
,
"icy-name:%s
\r\n
"
,
var
->
value
);
config_release_config
();
}
else
if
(
!
strncasecmp
(
"ice-"
,
var
->
name
,
4
))
{
{
if
(
!
strcasecmp
(
"ice-public"
,
var
->
name
))
if
(
!
strcasecmp
(
"ice-public"
,
var
->
name
))
bytes
=
snprintf
(
ptr
,
remaining
,
"icy-pub:%s
\r\n
"
,
var
->
value
);
bytes
=
snprintf
(
ptr
,
remaining
,
"icy-pub:%s
\r\n
"
,
var
->
value
);
...
...
Write
Preview
Markdown
is supported
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