summaryrefslogtreecommitdiff
path: root/httpd.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-29 21:54:04 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-29 21:54:04 +0100
commitd67fd6103956046245744cf5cf094d4da8cbcc19 (patch)
tree3e0dc28c50644ae271e8b208eb8cb362e0e5a43a /httpd.cpp
parent945887004432a7634ce096a7c3744b42ae2ab987 (diff)
Don't read entire directory tree into memory.
Diffstat (limited to 'httpd.cpp')
-rw-r--r--httpd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.cpp b/httpd.cpp
index 0c1015d..9e6d132 100644
--- a/httpd.cpp
+++ b/httpd.cpp
@@ -22,7 +22,7 @@ void HTTPConnection::handle_read(const boost::system::error_code& error, size_t
HTTPResponse res(socket);
- MusicListing *ml = music::find(req.path);
+ MusicListing::p ml = music::get(req.path);
if(ml) {
res.code = 200;
res.status = "OK";