diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-15 15:19:01 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-15 15:19:01 +0700 |
| commit | c358921275fb6c847ed6f9a266712fb1b3488c07 (patch) | |
| tree | 0d0595eb9e34a74fbb51a29aba631a9ed38a698a /http_attack_handler.go | |
| parent | 8ba25dd9f5d823a4bd66967b33ee9d2624397129 (diff) | |
| download | gorankusu-c358921275fb6c847ed6f9a266712fb1b3488c07.tar.xz | |
all: update module pakakeh.go to the tip
On the "lib/http" we refactoring RequestMethod and RequestType type
from int to string for readability, when the value is encoded, for
example to JSON.
So instead of 0, 1 or 2; it will print "GET", "CONNECT", or "HEAD".
Diffstat (limited to 'http_attack_handler.go')
| -rw-r--r-- | http_attack_handler.go | 2 |
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(), } |
