Removed logging
This commit is contained in:
12
src/URI.cpp
12
src/URI.cpp
@ -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() {
|
||||||
|
Reference in New Issue
Block a user