Browse code

Merge pull request #13507 from hqhq/hq_remove_redundant_set_header

Remove redundant set header

Alexander Morozov authored on 2015/05/28 02:44:57
Showing 1 changed files
... ...
@@ -244,8 +244,6 @@ func (s *Server) postAuth(version version.Version, w http.ResponseWriter, r *htt
244 244
 }
245 245
 
246 246
 func (s *Server) getVersion(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
247
-	w.Header().Set("Content-Type", "application/json")
248
-
249 247
 	v := &types.Version{
250 248
 		Version:    dockerversion.VERSION,
251 249
 		ApiVersion: api.APIVERSION,
... ...
@@ -359,8 +357,6 @@ func (s *Server) getImagesJSON(version version.Version, w http.ResponseWriter, r
359 359
 }
360 360
 
361 361
 func (s *Server) getInfo(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
362
-	w.Header().Set("Content-Type", "application/json")
363
-
364 362
 	info, err := s.daemon.SystemInfo()
365 363
 	if err != nil {
366 364
 		return err