aboutsummaryrefslogtreecommitdiff
path: root/src/clog.c
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-02-22 15:21:31 -0600
committerMichael McVady <femtonaut@gmail.com>2023-02-22 15:21:33 -0600
commit44a35197171371990051dc65f547c9aa742c94a1 (patch)
tree4af9b17f6e23954b5d7c61137a656cc0828ac3e5 /src/clog.c
parent645f32457f34822a54e090b9f9733fd006e0bf69 (diff)
Temporary redirect instead of permanent
Diffstat (limited to 'src/clog.c')
-rw-r--r--src/clog.c6
1 files changed, 2 insertions, 4 deletions
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;
}