aboutsummaryrefslogtreecommitdiff
path: root/run_request.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-05 03:21:53 +0700
committerShulhan <ms@kilabit.info>2024-02-05 03:23:00 +0700
commitf2cfe0de0eeec8bc7abf9d754b9e89681743ecff (patch)
tree802e8a32102a6786b4461e35b916d05b040558d0 /run_request.go
parentf02e4647bae78222196dc06406b5024c1b435bd7 (diff)
downloadgorankusu-f2cfe0de0eeec8bc7abf9d754b9e89681743ecff.tar.xz
all: implement form input file
The FormInput now can be set to FormInputKindFile that will rendered as "<input type='file' ...>" on the web user interface. Once submitted, the file name, type, size, and lastModification will be stored under FormInput Filename, Filetype, Filesize, and Filemodms. Implements: https://todo.sr.ht/~shulhan/trunks/1
Diffstat (limited to 'run_request.go')
-rw-r--r--run_request.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/run_request.go b/run_request.go
index 2f18098..51b60c6 100644
--- a/run_request.go
+++ b/run_request.go
@@ -57,8 +57,7 @@ func generateRunRequest(
outrr.HTTPTarget.Params = req.HTTPTarget.Params
outrr.HTTPTarget.paramsToPath()
- outrr.HTTPTarget.RequestDumper = origHTTPTarget.RequestDumper
- outrr.HTTPTarget.ResponseDumper = origHTTPTarget.ResponseDumper
+ outrr.HTTPTarget.refCopy(origHTTPTarget)
return outrr
}