mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
Fixing Memory Leak When Importing a Site
This commit is contained in:
parent
bfb7fd11e8
commit
208b3e098c
1 changed files with 1 additions and 1 deletions
|
@ -551,7 +551,7 @@ func API_Import_Site(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
// Insert the base href tag to better handle relative resources
|
||||
d, err := goquery.NewDocumentFromReader(resp.Body)
|
||||
d, err := goquery.NewDocumentFromResponse(resp)
|
||||
if err != nil {
|
||||
JSONResponse(w, models.Response{Success: false, Message: err.Error()}, http.StatusBadRequest)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue