Skip to content

Commit

Permalink
do not check for network header (#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun authored Sep 28, 2023
1 parent 83f2f2e commit 622eb98
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 622eb98

Please sign in to comment.