From cf381e7fd816dd1f00f5d04b1cf557e1f9066489 Mon Sep 17 00:00:00 2001 From: Leif Hedstrom Date: Thu, 18 Jul 2024 10:58:51 -0600 Subject: [PATCH] Removes matrix parameters from HRW --- plugins/header_rewrite/conditions.cc | 5 ----- plugins/header_rewrite/statement.cc | 2 -- plugins/header_rewrite/statement.h | 1 - 3 files changed, 8 deletions(-) diff --git a/plugins/header_rewrite/conditions.cc b/plugins/header_rewrite/conditions.cc index 9682d5c8a8f..67ed1f7567e 100644 --- a/plugins/header_rewrite/conditions.cc +++ b/plugins/header_rewrite/conditions.cc @@ -339,11 +339,6 @@ ConditionUrl::append_value(std::string &s, const Resources &res) s.append(q_str, i); Dbg(pi_dbg_ctl, " Query parameters to match is: %.*s", i, q_str); break; - case URL_QUAL_MATRIX: - q_str = TSUrlHttpParamsGet(bufp, url, &i); - s.append(q_str, i); - Dbg(pi_dbg_ctl, " Matrix parameters to match is: %.*s", i, q_str); - break; case URL_QUAL_SCHEME: q_str = TSUrlSchemeGet(bufp, url, &i); s.append(q_str, i); diff --git a/plugins/header_rewrite/statement.cc b/plugins/header_rewrite/statement.cc index 17a1f31736f..69bacda1fe6 100644 --- a/plugins/header_rewrite/statement.cc +++ b/plugins/header_rewrite/statement.cc @@ -104,8 +104,6 @@ Statement::parse_url_qualifier(const std::string &q) const qual = URL_QUAL_PATH; } else if (q == "QUERY") { qual = URL_QUAL_QUERY; - } else if (q == "MATRIX") { - qual = URL_QUAL_MATRIX; } else if (q == "SCHEME") { qual = URL_QUAL_SCHEME; } else if (q == "URL") { diff --git a/plugins/header_rewrite/statement.h b/plugins/header_rewrite/statement.h index dfb376908f5..1b5798bff3c 100644 --- a/plugins/header_rewrite/statement.h +++ b/plugins/header_rewrite/statement.h @@ -39,7 +39,6 @@ enum UrlQualifiers { URL_QUAL_PORT, URL_QUAL_PATH, URL_QUAL_QUERY, - URL_QUAL_MATRIX, URL_QUAL_SCHEME, URL_QUAL_URL, };