Skip to content

Commit

Permalink
bcdb_mock: don't write response twice
Browse files Browse the repository at this point in the history
  • Loading branch information
zaibon committed Nov 8, 2019
1 parent 21b0339 commit 47169f3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tools/bcdb_mock/node_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ func (s *nodeStore) cockpitListNodes(w http.ResponseWriter, r *http.Request) {
}
}

w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_ = json.NewEncoder(w).Encode(nodes)

x := struct {
Node []*directory.TfgridNode2 `json:"nodes"`
}{nodes}
Expand Down

0 comments on commit 47169f3

Please sign in to comment.