fix multiple mem leaks + optimizations (#4630)

* fix mem leak

* bump version tag

* http: add  global resp body read limit of 4MB

* skip creating templateCtx in normal templates

* fix mem leak via retryablehttp , fastdialer

* go mod tidy

* remove unused var

* dep update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
This commit is contained in:
Tarun Koyalwar
2024-01-18 05:53:42 +05:30
committed by GitHub
parent a942c05d22
commit c7c35ffb94
17 changed files with 158 additions and 74 deletions

View File

@@ -419,7 +419,11 @@ func (request *Request) executeRequestWithPayloads(hostPort string, input *conte
if err != nil {
return err
}
argsCopy.TemplateCtx = request.options.GetTemplateCtx(input.MetaInput).GetAll()
if request.options.HasTemplateCtx(input.MetaInput) {
argsCopy.TemplateCtx = request.options.GetTemplateCtx(input.MetaInput).GetAll()
} else {
argsCopy.TemplateCtx = map[string]interface{}{}
}
var requestData = []byte(request.Code)
var interactshURLs []string