From 17fb5e70f70461f2dbb055af098c3f896710f296 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 3 Dec 2007 11:06:35 +0000 Subject: [PATCH] * 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@600479 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index c0e9be74d0..cc929fc4fd 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -102,7 +102,7 @@ int ssl_hook_ReadReq(request_rec *r) * 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; } -- 2.40.0