From 8aaf433aa4ad64248247eee6cf9687c48248f476 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Mon, 25 Oct 2004 18:51:45 +0000 Subject: [PATCH] add check for header when relaying from v2.0 svn path=/icecast/trunk/icecast/; revision=8098 --- src/source.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/source.c b/src/source.c index f3ddc504..c667713e 100644 --- a/src/source.c +++ b/src/source.c @@ -499,6 +499,8 @@ static void source_init (source_t *source) source->yp_public = atoi(str); if ((str = httpp_getvar(source->parser, "icy-pub"))) source->yp_public = atoi(str); + if ((str = httpp_getvar(source->parser, "icy-public"))) + source->yp_public = atoi(str); if (str == NULL) str = "0"; stats_event (source->mount, "public", str);