diff options
Diffstat (limited to 'music.cpp')
-rw-r--r-- | music.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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); } } |