aboutsummaryrefslogtreecommitdiffstats
path: root/src/tipideed
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-10-09 17:14:56 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-10-09 17:14:56 +0000
commit46f4d80c4c40559a383d001838d766b2b438f4f0 (patch)
treea1471d419df12d24edea840df64da269a656ca33 /src/tipideed
parenteb56bacc8f5fff95cb752a7f8b3aefe8ed3f3d9a (diff)
downloadtipidee-46f4d80c4c40559a383d001838d766b2b438f4f0.tar.gz
Move string cmp operations to skalibs. Add cgit-nollmcrawler.
Diffstat (limited to 'src/tipideed')
-rw-r--r--src/tipideed/cgi.c2
-rw-r--r--src/tipideed/stream.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c
index d5daf56..14c6de8 100644
--- a/src/tipideed/cgi.c
+++ b/src/tipideed/cgi.c
@@ -320,7 +320,7 @@ static inline int do_cgi (tipidee_rql *rql, char const *docroot, char const *con
else
{
if (!status) status = 200 ;
- if (status != 304 && !tipidee_headers_search(&hdr, "Content-Type"))
+ if (status != 304 && (status < 400 || status > 599) && !tipidee_headers_search(&hdr, "Content-Type"))
die502x(rql, 2, docroot, "cgi ", argv[0], " didn't output a ", "Content-Type", " header") ;
}
diff --git a/src/tipideed/stream.c b/src/tipideed/stream.c
index 5d368b2..9774812 100644
--- a/src/tipideed/stream.c
+++ b/src/tipideed/stream.c
@@ -52,14 +52,14 @@ static ssize_t fixed_get (void *b)
void cork (int fd)
{
static int const val = 1 ;
- if (setsockopt(fd, SOL_TCP, TCP_CORK, &val, sizeof(int)) == -1 && g.logv)
+ if (!g.ssl && setsockopt(fd, SOL_TCP, TCP_CORK, &val, sizeof(int)) == -1 && g.logv)
strerr_warnwu1sys("uncork stdout") ;
}
void uncork (int fd)
{
static int const val = 0 ;
- if (setsockopt(fd, SOL_TCP, TCP_CORK, &val, sizeof(int)) == -1 && g.logv)
+ if (!g.ssl && setsockopt(fd, SOL_TCP, TCP_CORK, &val, sizeof(int)) == -1 && g.logv)
strerr_warnwu1sys("uncork stdout") ;
}