diff options
| author | Drew DeVault <sir@cmpwn.com> | 2020-11-01 11:19:51 -0500 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2020-11-01 11:19:51 -0500 |
| commit | dc6e4e80c0b0a3950594e32db7cff1b2db24d75c (patch) | |
| tree | ddbec0d5be083daa32f05acdcce25a31489ec999 /include | |
| parent | 953039e0b15df9c119b70eb18f36e580a4c4e7d4 (diff) | |
| download | gmnisrv-dc6e4e80c0b0a3950594e32db7cff1b2db24d75c.tar.gz gmnisrv-dc6e4e80c0b0a3950594e32db7cff1b2db24d75c.tar.xz gmnisrv-dc6e4e80c0b0a3950594e32db7cff1b2db24d75c.zip | |
Implement URL rewrites with regex capture groups
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 1 | ||||
| -rw-r--r-- | include/ini.h | 10 |
2 files changed, 1 insertions, 10 deletions
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 |
