From 32962dcdd3999ded675ef35f11c4931bfccbc08d Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 18 Sep 2024 08:18:41 +0000 Subject: [PATCH] put diff git-svn-id: file:///raid/svn-personal/tewi/trunk@41 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Module/mod_cgi.c | 5 ++++- README | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Module/mod_cgi.c b/Module/mod_cgi.c index 42df82f..718b8ab 100644 --- a/Module/mod_cgi.c +++ b/Module/mod_cgi.c @@ -17,4 +17,7 @@ int mod_config(struct tw_tool* tools, char** argv, int argc) { return TW_CONFIG_NOTME; } -int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_PASS; } +int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { + res->status = 403; + return TW_MODULE_STOP; +} diff --git a/README b/README index 9cada35..7f41354 100644 --- a/README +++ b/README @@ -1,3 +1,5 @@ Simple HTTP daemon Put under public domain, except Server/strptime.{c,h}. + +http://nishi.boats/tewi