summaryrefslogtreecommitdiff
path: root/modules/arch
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2020-04-21 09:02:20 +0000
committerChristophe Jaillet <jailletc36@apache.org>2020-04-21 09:02:20 +0000
commitadab20c8393d963be65af90ef4e6a97114b00366 (patch)
tree6982dd3b0b20eb945b91728ed32c977bc7de36f2 /modules/arch
parent8acbc07a956387f8987b962b1d61d2aa63f40d98 (diff)
downloadhttpd-adab20c8393d963be65af90ef4e6a97114b00366.tar.gz
Fix the way we are looking for "TLS/1.0" tokens.
ap_find_token() is more robust than expecting the token to be the first one in the 'Upgrade' header field. (see modules/ssl/ssl_engine_kernel.c#284) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876779 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch')
-rw-r--r--modules/arch/netware/mod_nw_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c
index 298554a6e5..ae0ef02308 100644
--- a/modules/arch/netware/mod_nw_ssl.c
+++ b/modules/arch/netware/mod_nw_ssl.c
@@ -1178,7 +1178,7 @@ static apr_status_t ssl_io_filter_Upgrade(ap_filter_t *f,
upgrade = apr_table_get(r->headers_in, "Upgrade");
if (upgrade == NULL
- || strcmp(ap_getword(r->pool, &upgrade, ','), "TLS/1.0")) {
+ || ap_find_token(r->pool, upgrade, "TLS/1.0")) {
/* "Upgrade: TLS/1.0, ..." header not found, don't do Upgrade */
return ap_pass_brigade(f->next, bb);
}