aboutsummaryrefslogtreecommitdiff
path: root/http_attack_handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_attack_handler.go')
-rw-r--r--http_attack_handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_attack_handler.go b/http_attack_handler.go
index 9ddcc65..fc5656b 100644
--- a/http_attack_handler.go
+++ b/http_attack_handler.go
@@ -27,7 +27,7 @@ func DefaultHTTPAttack() HTTPAttackHandler {
rr.HTTPTarget.paramsToPath()
var vegetaTarget = vegeta.Target{
- Method: rr.HTTPTarget.Method.String(),
+ Method: string(rr.HTTPTarget.Method),
URL: fmt.Sprintf(`%s%s`, rr.Target.BaseURL, rr.HTTPTarget.Path),
Header: rr.HTTPTarget.Headers.ToHTTPHeader(),
}