mirror of
https://github.com/americanexpress/baton.git
synced 2025-11-27 15:54:11 +00:00
Removing restriction on methods
This commit is contained in:
parent
f51c862af3
commit
778d6dc328
5
baton.go
5
baton.go
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user