]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/request.c
Grammar change in the license declaration.
[citadel.git] / webcit-ng / server / request.c
index 4b8b3b1d1363a80d2e995e51bbbd0ebf961ddd08..c0fa86b2cb9568d06e714a1560d4ae724e9410f0 100644 (file)
@@ -7,7 +7,7 @@
 // Copyright (c) 1996-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or
-// disclosure are subject to the GNU General Public License v3.
+// disclosure is subject to the GNU General Public License v3.
 
 #include "webcit.h"
 
@@ -22,6 +22,13 @@ void do_404(struct http_transaction *h) {
 }
 
 
+// Method not allowed
+void do_405(struct http_transaction *h) {
+       h->response_code = 412;
+       h->response_string = strdup("METHOD NOT ALLOWED");
+}
+
+
 // Precondition failed (such as if-match)
 void do_412(struct http_transaction *h) {
        h->response_code = 412;