about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-22 15:30:25 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-22 15:30:25 +0000
commit67d3d7e3fff2561a07c3c43f62db7119aac60f6b (patch)
tree2bd03a8d1e8230c65bed1b960efab2396ec94e15 /src
parent2a8dfa840b046bc1aa6723a4fe4ee0a4551c8713 (diff)
downloadtipidee-67d3d7e3fff2561a07c3c43f62db7119aac60f6b.tar.gz
tipidee-67d3d7e3fff2561a07c3c43f62db7119aac60f6b.tar.xz
tipidee-67d3d7e3fff2561a07c3c43f62db7119aac60f6b.zip
Connection: values are case-insensitive
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/tipideed/tipideed.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c
index 46ff50a..11d67f4 100644
--- a/src/tipideed/tipideed.c
+++ b/src/tipideed/tipideed.c
@@ -1,12 +1,14 @@
 /* ISC license. */
 
 #include <skalibs/bsdsnowflake.h>
+#include <skalibs/nonposix.h>
 
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
 
+#include <skalibs/posixplz.h>
 #include <skalibs/env.h>
 #include <skalibs/uint16.h>
 #include <skalibs/types.h>
@@ -446,8 +448,8 @@ int main (int argc, char const *const *argv, char const *const *envp)
       x = tipidee_headers_search(&hdr, "Connection") ;
       if (x)
       {
-        if (strstr(x, "close")) g.cont = 0 ;
-        else if (strstr(x, "keep-alive")) g.cont = 2 ;
+        if (strcasestr(x, "close")) g.cont = 0 ;
+        else if (strcasestr(x, "keep-alive")) g.cont = 2 ;
       }
     }