diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2020-04-21 11:02:20 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2020-04-21 11:02:20 +0200 |
commit | adab20c8393d963be65af90ef4e6a97114b00366 (patch) | |
tree | 6982dd3b0b20eb945b91728ed32c977bc7de36f2 /modules/arch | |
parent | * support/suexec.c (main): Report error string after failure from (diff) | |
download | apache2-adab20c8393d963be65af90ef4e6a97114b00366.tar.xz apache2-adab20c8393d963be65af90ef4e6a97114b00366.zip |
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.c | 2 |
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); } |