Skip to content

Commit

Permalink
add to cluster as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Jun 27, 2019
1 parent a606764 commit 7f2cfa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func handleProvisionCluster(c *Context, w http.ResponseWriter, r *http.Request)
unlockOnce()
c.Supervisor.Do()

w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusAccepted)
outputJSON(c, w, cluster)
}
Expand All @@ -191,6 +192,7 @@ func handleGetCluster(c *Context, w http.ResponseWriter, r *http.Request) {
return
}

w.Header().Set("Content-Type", "application/json")
outputJSON(c, w, cluster)
}

Expand Down

0 comments on commit 7f2cfa0

Please sign in to comment.