This is called when the current filtering operation is
completed. It must return an integer value. Usually 0
indicates success.
-
+
Additionally, cgit exposes to the Lua the following built-in functions:
'html(str)'::
the http cookie and return a 0 if it is invalid or 1 if it is invalid,
in the exit code / close function. If the filter action is
"authenticate-post", this filter receives POST'd parameters on
- standard input, and should write a complete CGI request, preferably
+ standard input, and should write a complete CGI response, preferably
with a 302 redirect, and write to output one or more "Set-Cookie"
HTTP headers, each followed by a newline.