]> granicus.if.org Git - apache/commitdiff
Use a case insensitive compare when looking for 'Upgrade'.
authorPaul Querna <pquerna@apache.org>
Thu, 2 Dec 2004 04:25:52 +0000 (04:25 +0000)
committerPaul Querna <pquerna@apache.org>
Thu, 2 Dec 2004 04:25:52 +0000 (04:25 +0000)
The first client I tested was sending 'upgrade'.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@109447 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_io.c

index fd5be72f0fd170e82ec0e0aee504b7f35ad850f6..9a870adf2337164352ed6b4889fe0d70abf9a1c1 100644 (file)
@@ -1213,7 +1213,7 @@ static apr_status_t ssl_io_filter_Upgrade(ap_filter_t *f,
 
     token_string = apr_pstrdup(r->pool,connection);
     token = apr_strtok(token_string,",",&token_state);
-    while (token && strcmp(token,"Upgrade")) {
+    while (token && strcasecmp(token,"Upgrade")) {
         apr_strtok(NULL,",",&token_state);
     }
     /* "Connection: Upgrade" header not found, don't do Upgrade */