summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--music.cpp6
1 files changed, 1 insertions, 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);
}
}