Skip to content

Commit 5410c35

Browse files
committed
Added the parameter generate-snippet to the CGI.
1 parent 6535653 commit 5410c35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cgi.c

+3
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ static int set_param(const char *name, size_t name_len,
328328
if (!strncmp(name, "no-protect-cdata", 16)) {
329329
if (value_len == 1 && value[0] == '1')
330330
param_protect_cdata = 0;
331+
} else if (!strncmp(name, "generate-snippet", 16)) {
332+
if (value_len == 1 && value[0] == '1')
333+
param_generate_snippet = 1;
331334
}
332335
} else if (name_len == 21) {
333336
if (!strncmp(name, "empty-elm-tags-always", 21)) {

0 commit comments

Comments
 (0)