Removed logging

This commit is contained in:
2018-06-04 22:00:29 +02:00
parent e785e3093e
commit 8e510d6c41

View File

@ -72,9 +72,6 @@ URI::URI(string webroot, string reqpath) {
relpath.erase(slash); relpath.erase(slash);
} }
cout << "info: " << info << endl;
cout << "rel: " << relpath << endl;
if (!info.empty() && isDirectory(webroot + relpath)) { if (!info.empty() && isDirectory(webroot + relpath)) {
relpath.append("/"); relpath.append("/");
} }
@ -95,7 +92,6 @@ URI::URI(string webroot, string reqpath) {
this->filepath = webroot + relpath; this->filepath = webroot + relpath;
if (isDirectory(webroot + abs)) { if (isDirectory(webroot + abs)) {
cout << "DIR" << endl;
if (abs[abs.length() - 1] != '/') { if (abs[abs.length() - 1] != '/') {
abs += "/"; abs += "/";
} }
@ -118,10 +114,6 @@ URI::URI(string webroot, string reqpath) {
} }
} }
cout << "Before rel: "<<relpath << endl;
cout << "'" << info << "'" << endl;
cout << info.empty() << endl;
if (isStatic() && !info.empty()) { if (isStatic() && !info.empty()) {
if (relpath[relpath.length() - 1] == '/') { if (relpath[relpath.length() - 1] == '/') {
relpath.erase(relpath.length() - 1); relpath.erase(relpath.length() - 1);
@ -137,10 +129,6 @@ URI::URI(string webroot, string reqpath) {
newpath = ""; newpath = "";
} }
cout << newpath << endl;
cout << relpath << endl;
cout << reqpath << endl;
} }
string URI::getWebRoot() { string URI::getWebRoot() {