From 66975f1b439dcbb185b9b7c2d6ca382606cc23d2 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 25 Sep 2021 02:31:30 +0700 Subject: all: prevent leaking Target and HttpTarget headers and variables In case two or more users access the Trunks web and set the target variables, the last user that run any HttpTarget will set the Target variables or HttpTarget headers/variables. The next user that open the Trunks web will see the values of headers and variables from the latest run. This changes fix this issue by generating new RunRequest using request original target --- example/example.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/example.go') diff --git a/example/example.go b/example/example.go index abf6c0e..3bf7395 100644 --- a/example/example.go +++ b/example/example.go @@ -259,7 +259,7 @@ func (ex *Example) registerTargets() (err error) { }, Params: trunks.KeyFormInput{ "Param1": trunks.FormInput{ - Label: "X-FreeForm", + Label: "Param1", Hint: "Parameter with number.", Kind: trunks.FormInputKindNumber, Value: "123", -- cgit v1.3