aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-04-24 15:09:33 +0700
committerShulhan <ms@kilabit.info>2024-04-24 15:09:33 +0700
commitf5aa31cc48e78816d6eec75a03be4abdd7cb6649 (patch)
tree8692e5e0b186407ec779b137397aa21fa81e790d /testdata
parent9e7d6accdee5e0620bd9605d0cb225444671e1ce (diff)
downloadgorankusu-f5aa31cc48e78816d6eec75a03be4abdd7cb6649.tar.xz
all: refactoring form input for multipart form-data
This changes replace handling type for storing multipart form-data from "map[string][]byte" to [*multipart.Form] based on changes on module "pakakeh.go".
Diffstat (limited to 'testdata')
-rw-r--r--testdata/target_http_run_formkindfile_test.txt40
1 files changed, 19 insertions, 21 deletions
diff --git a/testdata/target_http_run_formkindfile_test.txt b/testdata/target_http_run_formkindfile_test.txt
index 9dbf1ba..8932b1c 100644
--- a/testdata/target_http_run_formkindfile_test.txt
+++ b/testdata/target_http_run_formkindfile_test.txt
@@ -24,26 +24,24 @@ Test data for testing running HTTP with form kind is file (uploading file).
<<< valid:RunResponse.DumpResponse
HTTP/1.1 200 OK
-Content-Length: 256
+Content-Length: 637
Content-Type: application/json
-{
- "data": {
- "filecontent": [
- "Q29udGVudCBvZiBmaWxlIHVwbG9hZA=="
- ],
- "filemodms": [
- "0"
- ],
- "filesize": [
- "22"
- ],
- "filetype": [
- "text/plain"
- ],
- "name": [
- "test.txt"
- ]
- },
- "code": 200
-}
+--6f72616e6b7573756f72616e6b7573756f72616e6b7573756f72616e6b75
+Content-Disposition: form-data; name="file"; filename="test.txt"
+Content-Type: application/octet-stream
+
+Q29udGVudCBvZiBmaWxlIHVwbG9hZA==
+--6f72616e6b7573756f72616e6b7573756f72616e6b7573756f72616e6b75
+Content-Disposition: form-data; name="filemodms"
+
+0
+--6f72616e6b7573756f72616e6b7573756f72616e6b7573756f72616e6b75
+Content-Disposition: form-data; name="filesize"
+
+22
+--6f72616e6b7573756f72616e6b7573756f72616e6b7573756f72616e6b75
+Content-Disposition: form-data; name="filetype"
+
+text/plain
+--6f72616e6b7573756f72616e6b7573756f72616e6b7573756f72616e6b75--