mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove redundant set header
Which is already done in writeJSON. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
e580734149
commit
94d604357f
1 changed files with 0 additions and 4 deletions
|
@ -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 {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
v := &types.Version{
|
||||
Version: dockerversion.VERSION,
|
||||
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 {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
info, err := s.daemon.SystemInfo()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue