]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- replaced strncmp(token, "HTTP/", 5) with strncasecmp(...) -- Oskar Pearson
authorrousskov <>
Fri, 10 Jul 1998 01:21:00 +0000 (01:21 +0000)
committerrousskov <>
Fri, 10 Jul 1998 01:21:00 +0000 (01:21 +0000)
src/client_side.cc

index f51f753c73d670df2dc31ad9bad94e19f9d8f276..c19b0e7de52706db2fc29ace45e54ccda187c549 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.343 1998/07/04 18:55:22 rousskov Exp $
+ * $Id: client_side.cc,v 1.344 1998/07/09 19:21:00 rousskov Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2102,7 +2102,7 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status,
 
     token = strtok(NULL, null_string);
     for (t = token; t && *t && *t != '\n' && *t != '\r'; t++);
-    if (t == NULL || *t == '\0' || t == token || strncmp(token, "HTTP/", 5)) {
+    if (t == NULL || *t == '\0' || t == token || strncasecmp(token, "HTTP/", 5)) {
        debug(33, 3) ("parseHttpRequest: Missing HTTP identifier\n");
 #if RELAXED_HTTP_PARSER
        http_ver = (float) 0.9; /* wild guess */