diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-14 06:04:21 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-14 06:04:21 +0000 |
commit | 66844097454a8f2b4eddec64d4f276602c4cdd3a (patch) | |
tree | 479381323bf7e8911f2039e3fac529f8d9ccd1a6 | |
parent | e3c075c72d6b7b64c869b4cb0c0ff128b1d084cd (diff) | |
download | tipidee-66844097454a8f2b4eddec64d4f276602c4cdd3a.tar.gz tipidee-66844097454a8f2b4eddec64d4f276602c4cdd3a.tar.xz tipidee-66844097454a8f2b4eddec64d4f276602c4cdd3a.zip |
Re-enable HTTP_HOST; fix xiscgi
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/libtipidee/tipidee_conf_get_resattr.c | 2 | ||||
-rw-r--r-- | src/tipideed/cgi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libtipidee/tipidee_conf_get_resattr.c b/src/libtipidee/tipidee_conf_get_resattr.c index 9b33208..c5fc91a 100644 --- a/src/libtipidee/tipidee_conf_get_resattr.c +++ b/src/libtipidee/tipidee_conf_get_resattr.c @@ -11,7 +11,7 @@ int tipidee_conf_get_resattr (tipidee_conf const *conf, char const *res, tipidee_resattr *ra) { - tipidee_resattr rra = TIPIDEE_RESATTR_ZERO ; + tipidee_resattr rra = *ra ; size_t len = strlen(res) + 2 ; char key[len + 1] ; key[0] = 'A' ; key[1] = ':' ; diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c index 12b2155..343f7af 100644 --- a/src/tipideed/cgi.c +++ b/src/tipideed/cgi.c @@ -85,7 +85,7 @@ static inline void modify_env (tipidee_rql const *rql, char const *docroot, tipi } } else if (!strcasecmp(key, "Content-Type")) { addenv(rql, docroot, "CONTENT_TYPE", val) ; got |= 2 ; } - else if (!strcasecmp(key, "Content-Length") || !strcasecmp(key, "Connection") || !strcasecmp(key, "Host")) ; + else if (!strcasecmp(key, "Content-Length") || !strcasecmp(key, "Connection")) ; else { size_t len = strlen(key), pos = g.sa.len + 5 ; |