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

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

commit 27807f9a40d853c0ee1e764fa3cc83bfddb55d1f
Author: Leif Hedstrom <[email protected]>
AuthorDate: Mon Jul 28 21:34:11 2025 +0200

    HRW: Fix parser when conditions are values (#12399)
    
    (cherry picked from commit ab6ddc4573953c081deae5282bc00d371ea44456)
    (cherry picked from commit 325ffad278b31c2a7d2e389a55ba2f090550e53b)
    (cherry picked from commit b03feb96d84e5d91a2c85ec3c7ba4aa6f7c95a28)
---
 plugins/header_rewrite/value.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/header_rewrite/value.cc b/plugins/header_rewrite/value.cc
index d2cb89064c..69e32cbd06 100644
--- a/plugins/header_rewrite/value.cc
+++ b/plugins/header_rewrite/value.cc
@@ -56,7 +56,7 @@ Value::set_value(const std::string &val)
         if ((tcond_val = condition_factory(cond_token))) {
           Parser parser;
 
-          if (parser.parse_line(_value)) {
+          if (parser.parse_line(cond_token)) {
             tcond_val->initialize(parser);
           } else {
             // TODO: should we produce error here?

Reply via email to