1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #13507 from hqhq/hq_remove_redundant_set_header

Remove redundant set header
This commit is contained in:
Alexander Morozov 2015-05-27 10:44:57 -07:00
commit 7b57fae046

View file

@ -244,8 +244,6 @@ func (s *Server) postAuth(version version.Version, w http.ResponseWriter, r *htt
} }
func (s *Server) getVersion(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error { func (s *Server) getVersion(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
w.Header().Set("Content-Type", "application/json")
v := &types.Version{ v := &types.Version{
Version: dockerversion.VERSION, Version: dockerversion.VERSION,
ApiVersion: api.APIVERSION, ApiVersion: api.APIVERSION,
@ -359,8 +357,6 @@ func (s *Server) getImagesJSON(version version.Version, w http.ResponseWriter, r
} }
func (s *Server) getInfo(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error { func (s *Server) getInfo(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
w.Header().Set("Content-Type", "application/json")
info, err := s.daemon.SystemInfo() info, err := s.daemon.SystemInfo()
if err != nil { if err != nil {
return err return err