summaryrefslogtreecommitdiff
path: root/http_target.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_target.go')
-rw-r--r--http_target.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/http_target.go b/http_target.go
index 1eb3b18..13c7445 100644
--- a/http_target.go
+++ b/http_target.go
@@ -49,8 +49,8 @@ type HttpTarget struct {
Method libhttp.RequestMethod
Path string
RequestType libhttp.RequestType
- Headers KeyValue
- Params KeyValue
+ Headers KeyFormInput
+ Params KeyFormInput
Run HttpRunHandler `json:"-"`
ConvertParams HttpConvertParams `json:"-"`
@@ -81,10 +81,10 @@ func (ht *HttpTarget) init() (err error) {
ht.ID = generateID(ht.Name)
}
if ht.Headers == nil {
- ht.Headers = KeyValue{}
+ ht.Headers = KeyFormInput{}
}
if ht.Params == nil {
- ht.Params = KeyValue{}
+ ht.Params = KeyFormInput{}
}
if len(ht.Path) == 0 {
ht.Path = "/"