From f41f0c1f039ce016c6da3be4e53c696680b3b99d Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 26 Sep 2024 21:31:03 +0000 Subject: [PATCH] 2.01 git-svn-id: file:///raid/svn-personal/tewi/trunk@178 8739d7e6-ffea-ec47-b151-bdff447c6205 --- README | 2 +- Server/config.c | 5 ++++- Server/tw_version.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README b/README index 8ea3ed8..703769c 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -Tewi HTTPd version 2.00 +Tewi HTTPd version 2.01 Original by Nishi diff --git a/Server/config.c b/Server/config.c index 1746e0f..19098ac 100644 --- a/Server/config.c +++ b/Server/config.c @@ -409,7 +409,10 @@ int tw_config_read(const char* path) { for(i = 1; r[i] != NULL; i++) { current->indexes[current->index_count++] = cm_strdup(r[i]); } - } else if(cm_strcaseequ(r[0], "ReadmeFile")) { + } else if(cm_strcaseequ(r[0], "ReadmeFile") || cm_strcaseequ(r[0], "Readme")) { + if(cm_strcaseequ(r[0], "Readme")){ + cm_force_log("NOTE: Readme directive is deprecated."); + } for(i = 1; r[i] != NULL; i++) { current->readmes[current->readme_count++] = cm_strdup(r[i]); } diff --git a/Server/tw_version.h b/Server/tw_version.h index bf3fd15..00703c7 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -7,7 +7,7 @@ extern "C" { #endif -#define TW_VERSION "2.00\0" +#define TW_VERSION "2.01\0" const char* tw_get_version(void); const char* tw_get_platform(void); -- 2.43.0