From b3c30578ae1709feb978b72d756d88c17941cad4 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 2 Jan 2011 23:54:20 +0100 Subject: Use send_data() in MusicTrack::render(). --- music.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/music.cpp b/music.cpp index 3552f8e..fcc0daf 100644 --- a/music.cpp +++ b/music.cpp @@ -145,10 +145,6 @@ void MusicTrack::render(HTTP::Connection::p req) { req->add_header("content-length", boost::str(boost::format("%d") % is.tellg())); is.seekg(0, std::ios::beg); - char data[0x1000]; - while(is.good()) { - is.read(data, 0x1000); - req->send_data(data, is.gcount()); - } + req->send_data(is); } } -- cgit v1.2.3