Remove PathParams from bereq, because the req contains same values
@@ -86,7 +86,6 @@ func NewHTTPContext(baseCtx *hcl.EvalContext, bufOpt BufferOption, req, bereq *h
evalCtx.Variables[BackendRequest] = cty.ObjectVal(ContextMap{
Method: cty.StringVal(bereq.Method),
Path: cty.StringVal(bereq.URL.Path),
- PathParam: seetie.MapToValue(pathParams),
Post: seetie.ValuesMapToValue(parseForm(bereq).PostForm),
Query: seetie.ValuesMapToValue(bereq.URL.Query()),
URL: cty.StringVal(newRawURL(bereq.URL).String()),
