diff options
author | Omar Polo <op@omarpolo.com> | 2022-09-10 09:48:30 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-09-10 09:48:30 +0000 |
commit | 2025e96d976677a7bf6bbe54185eb7bca026fe9d (patch) | |
tree | a8c11171764281d2d252887712e8651fa87d364c /parse.y | |
parent | cd5826b8ba3b43ed9802309688ae029c0f5c4081 (diff) |
drop cgi vestiges from the struct host
The `env' list is no longer used since CGI scripts were removed
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -94,7 +94,7 @@ void parsehp(char *, char **, const char **, const char *); void only_once(const void*, const char*); void only_oncei(int, const char*); int fastcgi_conf(char *, char *, char *); -void add_param(char *, char *, int); +void add_param(char *, char *); static struct vhost *host; static struct location *loc; @@ -285,7 +285,7 @@ servopt : ALIAS string { host->ocsp = ensure_absolute_path($2); } | PARAM string '=' string { - add_param($2, $4, 0); + add_param($2, $4); } | locopt ; @@ -1197,15 +1197,10 @@ fastcgi_conf(char *path, char *port, char *prog) } void -add_param(char *name, char *val, int env) +add_param(char *name, char *val) { struct envlist *e; - struct envhead *h; - - if (env) - h = &host->env; - else - h = &host->params; + struct envhead *h = &host->params; e = xcalloc(1, sizeof(*e)); e->name = name; |