Index: openacs-4/packages/acs-tcl/tcl/request-processor-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/request-processor-init.tcl,v diff -u -r1.21.2.3 -r1.21.2.4 --- openacs-4/packages/acs-tcl/tcl/request-processor-init.tcl 6 Sep 2020 13:07:34 -0000 1.21.2.3 +++ openacs-4/packages/acs-tcl/tcl/request-processor-init.tcl 6 Dec 2020 08:42:04 -0000 1.21.2.4 @@ -72,7 +72,16 @@ } } -foreach httpMethod {GET HEAD POST} { +# +# Traditionally, the filters are registered for OpenACS just for GET, +# HEAD, and POST methods. Some applications might want to extend this +# like (e.g. for REST interfaces) +# +# set httpMethods {GET HEAD POST PUT} +# +set httpMethods {GET HEAD POST} + +foreach httpMethod $httpMethods { ns_register_filter preauth $httpMethod /resources/* rp_resources_filter ns_register_filter preauth $httpMethod * rp_filter ns_register_proc $httpMethod / rp_handler