From b4874eeb18ff06dcac93b3137db9a40e9c73e654 Mon Sep 17 00:00:00 2001 From: darkeye Date: Tue, 19 Feb 2002 15:24:26 +0000 Subject: [PATCH] send Content-type header when logging in to icecast2 servers --- darkice/trunk/src/IceCast2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/darkice/trunk/src/IceCast2.cpp b/darkice/trunk/src/IceCast2.cpp index fcd99b8..40c9d38 100644 --- a/darkice/trunk/src/IceCast2.cpp +++ b/darkice/trunk/src/IceCast2.cpp @@ -128,6 +128,10 @@ IceCast2 :: sendLogin ( void ) throw ( Exception ) str = " ICE/1.0"; sink->write( str, strlen( str)); + /* send the content type, Ogg Vorbis */ + str = "\nContent-type: application/x-ogg"; + sink->write( str, strlen( str)); + /* send the ice- headers */ str = "\nice-password: "; sink->write( str, strlen(str)); @@ -188,6 +192,9 @@ IceCast2 :: sendLogin ( void ) throw ( Exception ) $Source$ $Log$ + Revision 1.3 2002/02/19 15:24:26 darkeye + send Content-type header when logging in to icecast2 servers + Revision 1.2 2001/11/20 09:06:18 darkeye fixed public stream reporting