Post -> no redirect

This commit is contained in:
2018-06-05 12:37:55 +02:00
parent 8089bf3645
commit 74c964739c

View File

@ -184,7 +184,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col
FILE *file = path.openFile(); FILE *file = path.openFile();
pid_t childpid = 0; pid_t childpid = 0;
if (!path.getNewPath().empty()) { if (!path.getNewPath().empty() && req.getMethod() != "POST") {
req.redirect(302, path.getNewPath()); req.redirect(302, path.getNewPath());
} else { } else {