Sfoglia il codice sorgente

do not check for network header

Matthew R Kasun 2 anni fa
parent
commit
c781639e01
1 ha cambiato i file con 0 aggiunte e 10 eliminazioni
  1. 0 10
      controllers/ext_client.go

+ 0 - 10
controllers/ext_client.go

@@ -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())