mirror of https://github.com/omar-polo/gmid.git
drop cgi vestiges from the struct host
The `env' list is no longer used since CGI scripts were removed
This commit is contained in:
parent
cd5826b8ba
commit
2025e96d97
8
gmid.c
8
gmid.c
|
@ -242,14 +242,6 @@ free_config(void)
|
|||
free(l);
|
||||
}
|
||||
|
||||
TAILQ_FOREACH_SAFE(e, &h->env, envs, te) {
|
||||
TAILQ_REMOVE(&h->env, e, envs);
|
||||
|
||||
free(e->name);
|
||||
free(e->value);
|
||||
free(e);
|
||||
}
|
||||
|
||||
TAILQ_FOREACH_SAFE(e, &h->params, envs, te) {
|
||||
TAILQ_REMOVE(&h->params, e, envs);
|
||||
|
||||
|
|
1
gmid.h
1
gmid.h
|
@ -171,7 +171,6 @@ struct vhost {
|
|||
*/
|
||||
struct lochead locations;
|
||||
|
||||
struct envhead env;
|
||||
struct envhead params;
|
||||
struct aliashead aliases;
|
||||
struct proxyhead proxies;
|
||||
|
|
13
parse.y
13
parse.y
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue