aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-09-25 02:31:30 +0700
committerShulhan <ms@kilabit.info>2021-09-25 02:31:30 +0700
commit66975f1b439dcbb185b9b7c2d6ca382606cc23d2 (patch)
tree6f4dcc60150dc9f85093258075699a3a12090d15 /example
parent8b2b38de2e55d5c1ab7bed5bd19ce315ae8908d5 (diff)
downloadgorankusu-66975f1b439dcbb185b9b7c2d6ca382606cc23d2.tar.xz
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
Diffstat (limited to 'example')
-rw-r--r--example/example.go2
1 files changed, 1 insertions, 1 deletions
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",