-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
| constant_properties = template.reject { |_,v| templated?(v) } |
A Solution could be to extract constant_properties[:headers] then do the same as the variable_properties and reseting it in constant_properties before freezing. Something like
`
def buildHeaders(event)
if @constant_properties[:headers]
constant_headers = @constant_properties[:headers].reject { |_, v| templated?(v) }
variable_headers = @constant_properties[:headers].select { |_, v| templated?(v) }
headers = variable_headers.each_with_object(constant_headers.dup) do |(k, v), memo|
memo.store(k, event.sprintf(v))
end
@constant_properties[:headers] = headers
@constant_properties.freez
end
end`
@yaauie could you help us fix this issue ? Thank you in advance
Metadata
Metadata
Assignees
Labels
No labels