Skip to content

Commit

Permalink
fix(http.go): fixed method name in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjitGopher authored Oct 2, 2024
1 parent b800cf2 commit f9bbc5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/modules/k6/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (r *RootModule) NewModuleInstance(vu modules.VU) modules.Instance {
// http.get(url, params) doesn't have a body argument, so we add undefined
// as the third argument to http.request(method, url, body, params)

// http.get method should not have more than two arguments
// get method should not have more than two arguments
validateArgCount("get",args...)
args = append([]sobek.Value{sobek.Undefined()}, args...)
return mi.defaultClient.Request(http.MethodGet, url, args...)
Expand All @@ -88,7 +88,7 @@ func (r *RootModule) NewModuleInstance(vu modules.VU) modules.Instance {
// http.head(url, params) doesn't have a body argument, so we add undefined
// as the third argument to http.request(method, url, body, params)

// http.head method should not have more than two arguments
// head method should not have more than two arguments
validateArgCount("head",args...)
args = append([]sobek.Value{sobek.Undefined()}, args...)
return mi.defaultClient.Request(http.MethodHead, url, args...)
Expand Down

0 comments on commit f9bbc5c

Please sign in to comment.