This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new dfbea61df5 Fixes the HRW regexes after refactoring in #11152 (#11250)
dfbea61df5 is described below
commit dfbea61df5cba3b63658c522d67e52080874691a
Author: Leif Hedstrom <[email protected]>
AuthorDate: Fri Apr 12 16:16:14 2024 -0600
Fixes the HRW regexes after refactoring in #11152 (#11250)
---
plugins/header_rewrite/matcher.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/plugins/header_rewrite/matcher.h b/plugins/header_rewrite/matcher.h
index fb56a29df6..f094ede33e 100644
--- a/plugins/header_rewrite/matcher.h
+++ b/plugins/header_rewrite/matcher.h
@@ -85,7 +85,7 @@ public:
get() const
{
return _data;
- };
+ }
void
set(const T &d, CondModifiers mods)
@@ -205,6 +205,10 @@ private:
bool _nocase = false;
};
+// Specializations for the strings, since they can be both strings and regexes
+template <> void Matchers<std::string>::set(const std::string &d,
CondModifiers mods);
+template <> bool Matchers<std::string>::test_eq(const std::string &t) const;
+
// Specialized case matcher for the IP addresses matches.
template <> class Matchers<const sockaddr *> : public Matcher
{