You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2007/12/03 12:06:37 UTC

svn commit: r600479 - /httpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c

Author: jorton
Date: Mon Dec  3 03:06:35 2007
New Revision: 600479

URL: http://svn.apache.org/viewvc?rev=600479&view=rev
Log:
* modules/ssl/ssl_engine_kernel.c (ssl_hook_ReadReq): For performing
  TLS upgrade, require only the presence of a "TLS/1.0" token
  somewhere in the Upgrade request-header, rather than as the exact
  header value.

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c?rev=600479&r1=600478&r2=600479&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c Mon Dec  3 03:06:35 2007
@@ -102,7 +102,7 @@
      * has sent a suitable Upgrade header. */
     if (sc->enabled == SSL_ENABLED_OPTIONAL && !myConnConfig(r->connection)
         && (upgrade = apr_table_get(r->headers_in, "Upgrade")) != NULL
-        && strcmp(ap_getword(r->pool, &upgrade, ','), "TLS/1.0") == 0) {
+        && ap_find_token(r->pool, upgrade, "TLS/1.0")) {
         if (upgrade_connection(r)) {
             return HTTP_INTERNAL_SERVER_ERROR;
         }