Skip to content

Commit

Permalink
do not check for network header
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun committed Sep 22, 2023
1 parent cd80c03 commit c781639
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions controllers/ext_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ func getAllExtClients(w http.ResponseWriter, r *http.Request) {

w.Header().Set("Content-Type", "application/json")

headerNetworks := r.Header.Get("networks")
networksSlice := []string{}
marshalErr := json.Unmarshal([]byte(headerNetworks), &networksSlice)
if marshalErr != nil {
slog.Error("error unmarshalling networks", "error", marshalErr.Error())
logic.ReturnErrorResponse(w, r, logic.FormatError(marshalErr, "internal"))
return
}

var err error
clients, err := logic.GetAllExtClients()
if err != nil && !database.IsEmptyRecord(err) {
logger.Log(0, "failed to get all extclients: ", err.Error())
Expand Down

0 comments on commit c781639

Please sign in to comment.