diff --git a/tests/test_WEBagents.cpp b/tests/test_WEBagents.cpp index 56f9cf1..fe4de9b 100644 --- a/tests/test_WEBagents.cpp +++ b/tests/test_WEBagents.cpp @@ -113,7 +113,7 @@ class MyHandler : public w3c_sw::webserver::request_handler { for ( boost::filesystem::directory_iterator itr( doc_root_ + request_path ); itr != end_itr; ++itr ) { - std::string name = itr->leaf(); + std::string name = itr->path().filename().native(); if (boost::filesystem::is_directory(itr->status())) name += "/"; s << "