Skip to content

Commit

Permalink
api: fix /api/manifests/{id}
Browse files Browse the repository at this point in the history
  • Loading branch information
DSpeichert committed Jul 7, 2021
1 parent 7177381 commit b0020aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ func NewServer(store *store.Store, authorization string) (server *Server, err er
var b []byte
if strings.Contains(r.Header.Get("Accept"), "application/json") {
w.Header().Set("Content-Type", "applications/json")
b, _ = json.Marshal(store.GetAll())
b, _ = json.Marshal(m)
} else {
w.Header().Set("Content-Type", "text/yaml")
b, _ = yaml.Marshal(store.GetAll())
b, _ = yaml.Marshal(m)
}
w.WriteHeader(http.StatusOK)
w.Write(b)
Expand Down

0 comments on commit b0020aa

Please sign in to comment.