Skip to content

Commit

Permalink
fix typo in function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Jul 20, 2023
1 parent c7284f6 commit ac8c929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/pkg/protocols/headless/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (request *Request) executeRequestWithPayloads(input *contextargs.Context, p
defer page.Close()

reqLog := instance.GetRequestLog()
navigatedURL := request.getLastNaviationURLWithLog(reqLog) // also known as matchedURL if there is a match
navigatedURL := request.getLastNavigationURLWithLog(reqLog) // also known as matchedURL if there is a match

request.options.Output.Request(request.options.TemplatePath, input.MetaInput.Input, request.Type().String(), nil)
request.options.Progress.IncrementRequests()
Expand Down Expand Up @@ -228,7 +228,7 @@ func (request *Request) executeFuzzingRule(input *contextargs.Context, payloads
}

// getLastNaviationURL returns last successfully navigated URL
func (request *Request) getLastNaviationURLWithLog(reqLog map[string]string) string {
func (request *Request) getLastNavigationURLWithLog(reqLog map[string]string) string {
for i := len(request.Steps) - 1; i >= 0; i-- {
if request.Steps[i].ActionType.ActionType == engine.ActionNavigate {
templateURL := request.Steps[i].GetArg("url")
Expand Down

0 comments on commit ac8c929

Please sign in to comment.