From 8089bf3645128c07ff10d3943a3cf3590ce49813 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 5 Jun 2018 09:56:59 +0200 Subject: [PATCH] paht info html --- src/URI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/URI.cpp b/src/URI.cpp index 03eea13..deb7155 100644 --- a/src/URI.cpp +++ b/src/URI.cpp @@ -63,7 +63,7 @@ URI::URI(string webroot, string reqpath) { info = ""; relpath = reqpath; - while (!fileExists(webroot + relpath) && !fileExists(webroot + relpath + ".php")) { + while (!fileExists(webroot + relpath) && !fileExists(webroot + relpath + ".php") && !fileExists(webroot + relpath + ".html")) { long slash = relpath.find_last_of('/'); if (slash == string::npos) { break;