summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libtipidee/tipidee_conf_get_resattr.c2
-rw-r--r--src/tipideed/cgi.c2
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 ;