Fixes #126: unreachable code in http(s) examples

This commit is contained in:
eidheim 2017-05-30 19:05:20 +02:00
commit 7a1a23bf9c
2 changed files with 0 additions and 4 deletions

View file

@ -118,8 +118,6 @@ int main() {
throw invalid_argument("path must be within root path");
if(boost::filesystem::is_directory(path))
path/="index.html";
if(!(boost::filesystem::exists(path) && boost::filesystem::is_regular_file(path)))
throw invalid_argument("file does not exist");
std::string cache_control, etag;

View file

@ -116,8 +116,6 @@ int main() {
throw invalid_argument("path must be within root path");
if(boost::filesystem::is_directory(path))
path/="index.html";
if(!(boost::filesystem::exists(path) && boost::filesystem::is_regular_file(path)))
throw invalid_argument("file does not exist");
std::string cache_control, etag;