mirror of https://github.com/gophish/gophish
Merge branch 'master' of https://github.com/gophish/gophish
commit
770bff192a
|
@ -551,7 +551,7 @@ func API_Import_Site(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Insert the base href tag to better handle relative resources
|
// Insert the base href tag to better handle relative resources
|
||||||
d, err := goquery.NewDocumentFromReader(resp.Body)
|
d, err := goquery.NewDocumentFromResponse(resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
JSONResponse(w, models.Response{Success: false, Message: err.Error()}, http.StatusBadRequest)
|
JSONResponse(w, models.Response{Success: false, Message: err.Error()}, http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue