From 60f8b91d4de4e58d25a1007742b5d3d0b0e6f06f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 30 Oct 2026 11:54:18 -0700 Subject: Set the virtual root from SCRIPT_NAME up front The script name always holds a value, so the fallback after parsing fired whenever cgitrc left virtual-root unset. The root is now set with the other defaults, for cgitrc to replace. A die while cgitrc is read is the one change, and its page now links the root with the trailing slash every other page has. --- source/cgit.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/cgit.h') diff --git a/source/cgit.h b/source/cgit.h index 5e17a3e..a089633 100644 --- a/source/cgit.h +++ b/source/cgit.h @@ -303,7 +303,6 @@ struct cgit_environment { const char *path_info; const char *query_string; const char *request_method; - const char *script_name; const char *server_name; const char *server_port; const char *http_cookie; -- cgit 2.12.1