Fixes #126: unreachable code in http(s) examples
This commit is contained in:
parent
4469de156b
commit
7a1a23bf9c
2 changed files with 0 additions and 4 deletions
|
|
@ -118,8 +118,6 @@ int main() {
|
||||||
throw invalid_argument("path must be within root path");
|
throw invalid_argument("path must be within root path");
|
||||||
if(boost::filesystem::is_directory(path))
|
if(boost::filesystem::is_directory(path))
|
||||||
path/="index.html";
|
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;
|
std::string cache_control, etag;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,6 @@ int main() {
|
||||||
throw invalid_argument("path must be within root path");
|
throw invalid_argument("path must be within root path");
|
||||||
if(boost::filesystem::is_directory(path))
|
if(boost::filesystem::is_directory(path))
|
||||||
path/="index.html";
|
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;
|
std::string cache_control, etag;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue