diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-02 23:54:20 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-02 23:54:20 +0100 |
commit | b3c30578ae1709feb978b72d756d88c17941cad4 (patch) | |
tree | acdc0cc563ba15b69bfbd77b4364ed94297d5311 | |
parent | 4188dfb5d3e5e41a812d4e6cdbfca053b0cbd62b (diff) |
Use send_data() in MusicTrack::render().
-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); } } |