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 5ebe2c2915 hrw4u: Wrong validator for status reason (#12403)
5ebe2c2915 is described below
commit 5ebe2c2915bc6f8524c078dc2f6d47fd634b4d69
Author: Leif Hedstrom <[email protected]>
AuthorDate: Tue Aug 12 14:49:42 2025 +0000
hrw4u: Wrong validator for status reason (#12403)
---
tools/hrw4u/src/symbols.py | 3 ++-
tools/hrw4u/src/validation.py | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/hrw4u/src/symbols.py b/tools/hrw4u/src/symbols.py
index c07821dc4a..86ed23cdda 100644
--- a/tools/hrw4u/src/symbols.py
+++ b/tools/hrw4u/src/symbols.py
@@ -40,7 +40,8 @@ class SymbolResolver:
"outbound.req.": (["rm-header", "set-header"], Validator.http_token(),
False, {"PRE_REMAP", "REMAP", "READ_REQUEST"}),
"outbound.resp.":
(["rm-header", "set-header"], Validator.http_token(), False,
{"PRE_REMAP", "REMAP", "READ_REQUEST", "SEND_REQUEST"}),
- "outbound.status.reason": ("set-status-reason", Validator.range(0,
999), False, {"PRE_REMAP", "REMAP", "READ_REQUEST"}),
+ "outbound.status.reason":
+ ("set-status-reason", Validator.quoted_or_simple(), False,
{"PRE_REMAP", "REMAP", "READ_REQUEST"}),
"outbound.status": ("set-status", Validator.range(0, 999), False,
{"PRE_REMAP", "REMAP", "READ_REQUEST"}),
}
diff --git a/tools/hrw4u/src/validation.py b/tools/hrw4u/src/validation.py
index aa590f7abe..d7ce916c74 100644
--- a/tools/hrw4u/src/validation.py
+++ b/tools/hrw4u/src/validation.py
@@ -20,7 +20,6 @@ validation.py
Encapsulates shared validation utilities for use in HRW4U.
"""
-import inspect
import re
from typing import Callable, List, Optional
from hrw4u.errors import SymbolResolutionError