Allow non-string values to be passed through a request context as well
This commit is contained in:
parent
9421602e81
commit
4a148971b4
1 changed files with 4 additions and 1 deletions
|
@ -126,7 +126,10 @@ class Request(Message):
|
|||
pass
|
||||
|
||||
parsed_value = ''
|
||||
while value:
|
||||
if not isinstance(value, str):
|
||||
parsed_value = value
|
||||
|
||||
while value and isinstance(value, str):
|
||||
m = re.match('([^\$]*)(\${\s*(.+?)\s*})(.*)', value)
|
||||
if m and not m.group(1).endswith('\\'):
|
||||
prefix = m.group(1); expr = m.group(2);
|
||||
|
|
Loading…
Reference in a new issue