From 1d85e91051b292322aa06b421f4b18f665580de9 Mon Sep 17 00:00:00 2001 From: blastmaster Date: Wed, 22 Jan 2014 23:53:06 +0100 Subject: [PATCH] fixed c_str() typo --- src/MediocreSimpleStaticFileHandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MediocreSimpleStaticFileHandler.cc b/src/MediocreSimpleStaticFileHandler.cc index 52a7f3a..a5c29c2 100644 --- a/src/MediocreSimpleStaticFileHandler.cc +++ b/src/MediocreSimpleStaticFileHandler.cc @@ -13,7 +13,7 @@ class MediocreSimpleStaticFileHandler :StaticFileHandler int answer_pathreq(const char * const path, struct mg_connection *conn) { - mg_send_file(conn,cleanpath(path).to_cstring()); + mg_send_file(conn,cleanpath(path).c_str()); return 0; } }