From 44a35197171371990051dc65f547c9aa742c94a1 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Wed, 22 Feb 2023 15:21:31 -0600 Subject: Temporary redirect instead of permanent --- src/clog.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/clog.c b/src/clog.c index 459d77d..6364c49 100644 --- a/src/clog.c +++ b/src/clog.c @@ -13,8 +13,7 @@ #include "../lib/md4c/src/md4c-html.c" #include "assets.h" -// FIXME: Why does compilation fail if this is a .c file? -#include "queries.h" +#include "queries.h" // FIXME: Compilation fail if this is a .c file. KORE_SECCOMP_FILTER("clog", KORE_SYSCALL_ALLOW(bind), @@ -225,8 +224,7 @@ int http_err_resp( int redirect(struct http_request *req) { http_response_header(req, "Location", "/"); - http_response(req, HTTP_STATUS_MOVED_PERMANENTLY, NULL, 0); - + http_response(req, HTTP_STATUS_TEMPORARY_REDIRECT, NULL, 0); return KORE_RESULT_OK; } -- cgit v1.2.3