We assume that SCRIPT_NAME does not end in a slash or is empty and thus
PATH_INFO _must_ start with a slash.
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index dfebbda..25d306b 100644
--- a/main.c
+++ b/main.c
@@ -165,7 +165,7 @@ int main(void) {
page_type = PAGE_TYPE_ERROR;
} else if(path_info == NULL || path_info[0] == '\0' || strcmp(path_info, "/") == 0) {
// make sure clean URLs are generated
- setenv("PATH_INFO", "", 1);
+ setenv("PATH_INFO", "/", 1);
page_type = PAGE_TYPE_INDEX;
} else if(strcmp(path_info, "/rss.xml") == 0) {
|