Removing restriction on methods

This commit is contained in:
Philipp P Egli 2018-02-15 21:13:17 +00:00 committed by Benjamin J Cane
parent f51c862af3
commit 778d6dc328

View File

@ -112,8 +112,6 @@ func (baton *Baton) run() {
client = &fasthttp.Client{TLSConfig: tlsConfig}
}
switch baton.configuration.method {
case "GET", "POST", "PUT", "DELETE":
if baton.configuration.dataFilePath != "" {
data, err := ioutil.ReadFile(baton.configuration.dataFilePath)
if err != nil {
@ -121,9 +119,6 @@ func (baton *Baton) run() {
}
baton.configuration.body = string(data)
}
default:
log.Fatal("Invalid method specified")
}
if preloadedRequestsMode {
log.Printf("Configuring to send requests from file. (Read %d requests)\n", len(preloadedRequests))