From f1817e2853ebe536fe6ef78ba8fdc36b22de26cf Mon Sep 17 00:00:00 2001 From: darkeye Date: Tue, 20 Aug 2002 20:16:59 +0000 Subject: [PATCH] added User-Agent header to HTTP login --- 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 87e5a11..552da50 100644 --- a/darkice/trunk/src/IceCast2.cpp +++ b/darkice/trunk/src/IceCast2.cpp @@ -172,6 +172,10 @@ IceCast2 :: sendLogin ( void ) throw ( Exception ) delete[] base64; } + /* send user agent info */ + str = "\nUser-Agent: DarkIce/" VERSION " (http://darkice.sourceforge.net/)"; + sink->write( str, strlen( str)); + /* send the ice- headers */ str = "\nice-bitrate: "; sink->write( str, strlen( str)); @@ -229,6 +233,9 @@ IceCast2 :: sendLogin ( void ) throw ( Exception ) $Source$ $Log$ + Revision 1.8 2002/08/20 20:16:59 darkeye + added User-Agent header to HTTP login + Revision 1.7 2002/08/20 19:34:43 darkeye minor fix