Explorar el Código

Add content type to Push

creack hace 12 años
padre
commit
3870ebee6d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      registry.go

+ 1 - 0
registry.go

@@ -203,6 +203,7 @@ func (graph *Graph) PushImage(imgOrig *Image, authConfig *auth.AuthConfig) error
 		if err != nil {
 			return err
 		}
+		req.Header.Add("Content-type", "application/json")
 		req.SetBasicAuth(authConfig.Username, authConfig.Password)
 		res, err := client.Do(req)
 		if err != nil || res.StatusCode != 200 {