Add defaults for HTTGetAction.Path & test actions

The comment says optional - this makes it optional.  Test handler actions.
This commit is contained in:
Tim Hockin
2015-02-27 17:33:58 -08:00
parent 0fec31a11e
commit 532c39c336
6 changed files with 71 additions and 0 deletions

View File

@@ -85,5 +85,10 @@ func init() {
obj.Protocol = "TCP"
}
},
func(obj *HTTPGetAction) {
if obj.Path == "" {
obj.Path = "/"
}
},
)
}