From 208b3e098caca006f3aeef87b1acaabc68f47c1f Mon Sep 17 00:00:00 2001 From: s vignesh Date: Thu, 15 Sep 2016 10:33:55 +0530 Subject: [PATCH] Fixing Memory Leak When Importing a Site --- controllers/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/api.go b/controllers/api.go index 594bb92c..e84e6bfa 100644 --- a/controllers/api.go +++ b/controllers/api.go @@ -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