From 28275a5bdc48d391c13779899d084c784f6a805d Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 28 Jul 2018 19:46:01 +0200 Subject: [PATCH] Redirects --- src/client.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index e912e15..29830bd 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -188,7 +188,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col log(prefix, "\x1B[1m" + req.getMethod() + " " + req.getPath() + "\x1B[0m"); - bool noRedirect = req.getPath().find("/.well-known/acme-challenge/") == 0 || req.getPath() == "/robots.txt"; + bool noRedirect = req.getPath().find("/.well-known/acme-challenge/") == 0; bool redir = true; if (!noRedirect) { @@ -199,8 +199,6 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col } else { redir = false; } - } else if (getWebRoot(host).empty() && req.getPath() == "/robots.txt") { - req.redirect(303, "//www.necronda.net" + req.getPath()); } else { redir = false; }