Skip to content

Commit

Permalink
removing bug off the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-philippe Martel committed Oct 20, 2022
1 parent 4c7a17b commit b3381f0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/config_structs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ struct location_info {
data += line;
}
file.close();
if (data == "")
{
return("<!DOCTYPE html><html><head><title>" + path +
"</title></head><body><h1>" + path +
"</h1> <img width=500 height=500 src=\"https://images.nightcafe.studio/jobs/gSfqoxufQvOM3TxCsPqr/gSfqoxufQvOM3TxCsPqr--3--7z5s8.jpg?tr=w-640,c-at_max\"> \
<h1> a rat ate your error page sorry </h1> </body></html>");
}
return data;
}
std::string find_content() const {
Expand Down Expand Up @@ -136,10 +129,6 @@ struct location_info {
time_string.erase(std::remove(time_string.begin(), time_string.end(), '\n'),
time_string.end());
time_string.insert(time_string.find(' '), " - ");
// os << "root: " << test.root << std::endl;
// os << "index: " << test.index << std::endl;
// os << "upload_dir: " << test.upload_dir << std::endl;
// os << "autoindex: " << test.autoindex << std::endl;
std::map<std::string, std::string>::const_iterator it;
for (it = test.cgi.begin(); it != test.cgi.end(); it++) {
os << "cgi: " << it->first << " " << it->second << std::endl;
Expand Down

0 comments on commit b3381f0

Please sign in to comment.