This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 4c8fd0c0055214d29d7bfc927d95c1eddba42e02
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Fri Apr 12 16:16:14 2024 -0600

    Fixes the HRW regexes after refactoring in #11152 (#11250)
    
    (cherry picked from commit dfbea61df5cba3b63658c522d67e52080874691a)
---
 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
 {

Reply via email to