mirror of https://github.com/gophish/gophish
Removed unused Location header
parent
670347e057
commit
8f62e77884
|
@ -176,7 +176,6 @@ func API_Groups(w http.ResponseWriter, r *http.Request) {
|
||||||
JSONResponse(w, models.Response{Success: false, Message: err.Error()}, http.StatusBadRequest)
|
JSONResponse(w, models.Response{Success: false, Message: err.Error()}, http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.Header().Set("Location", "http://localhost:3333/api/groups/"+string(g.Id))
|
|
||||||
JSONResponse(w, g, http.StatusCreated)
|
JSONResponse(w, g, http.StatusCreated)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue