diff options
author | Michael McVady <femtonaut@gmail.com> | 2023-02-22 15:21:31 -0600 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2023-02-22 15:21:33 -0600 |
commit | 44a35197171371990051dc65f547c9aa742c94a1 (patch) | |
tree | 4af9b17f6e23954b5d7c61137a656cc0828ac3e5 /src | |
parent | 645f32457f34822a54e090b9f9733fd006e0bf69 (diff) |
Temporary redirect instead of permanent
Diffstat (limited to 'src')
-rw-r--r-- | src/clog.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |