From dc6e4e80c0b0a3950594e32db7cff1b2db24d75c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 1 Nov 2020 11:19:51 -0500 Subject: Implement URL rewrites with regex capture groups --- include/config.h | 1 + include/ini.h | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index cf9f2a3..fc7e9fb 100644 --- a/include/config.h +++ b/include/config.h @@ -26,6 +26,7 @@ struct gmnisrv_route { char *root; char *index; + char *rewrite; bool autoindex; bool cgi; diff --git a/include/ini.h b/include/ini.h index 3757b83..81556cd 100644 --- a/include/ini.h +++ b/include/ini.h @@ -55,16 +55,6 @@ int ini_parse_stream(ini_reader reader, void* stream, ini_handler handler, #define INI_ALLOW_BOM 1 #endif -/* Nonzero to allow inline comments (with valid inline comment characters - specified by INI_INLINE_COMMENT_PREFIXES). Set to 0 to turn off and match - Python 3.2+ configparser behaviour. */ -#ifndef INI_ALLOW_INLINE_COMMENTS -#define INI_ALLOW_INLINE_COMMENTS 1 -#endif -#ifndef INI_INLINE_COMMENT_PREFIXES -#define INI_INLINE_COMMENT_PREFIXES ";" -#endif - /* Nonzero to use stack, zero to use heap (malloc/free). */ #ifndef INI_USE_STACK #define INI_USE_STACK 1 -- cgit v1.2.3