]> Git repositories of Nishi - tewi.git/commitdiff
put diff
authorNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 08:18:41 +0000 (08:18 +0000)
committerNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 08:18:41 +0000 (08:18 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@41 8739d7e6-ffea-ec47-b151-bdff447c6205

Module/mod_cgi.c
README

index 42df82f767cd00f1256a87925ccff9861863be85..718b8ab208791883085756be435efe663494de9e 100644 (file)
@@ -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 9cada352c475fb2070008366edd6bbd0903fa019..7f41354d55634ff64c468d95649c86c7cb37458f 100644 (file)
--- a/README
+++ b/README
@@ -1,3 +1,5 @@
 Simple HTTP daemon
 
 Put under public domain, except Server/strptime.{c,h}.
+
+http://nishi.boats/tewi