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