mirror of
https://github.com/docker/cli.git
synced 2026-09-25 17:02:07 -04:00
Fix wrong Content-Type returned by /images/search API
/images/search was replying with Content-Type text/plain instead of application/json. Fix #14846 Signed-off-by: Antonio Murdaca <runcom@linux.com> Upstream-commit: 1a5d6a94c9e4c099354d9125ea857f6277eca0b7 Component: engine
This commit is contained in:
@@ -818,7 +818,7 @@ func (s *Server) getImagesSearch(version version.Version, w http.ResponseWriter,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return json.NewEncoder(w).Encode(query.Results)
|
||||
return writeJSON(w, http.StatusOK, query.Results)
|
||||
}
|
||||
|
||||
func (s *Server) postImagesPush(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
||||
|
||||
Reference in New Issue
Block a user