Ver código fonte

fix error push

Victor Vieux 12 anos atrás
pai
commit
182842e3c3
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      api.go

+ 1 - 1
api.go

@@ -353,7 +353,7 @@ func postImagesPush(srv *Server, w http.ResponseWriter, r *http.Request, vars ma
 	defer in.Close()
 	fmt.Fprintf(out, "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.docker.raw-stream\r\n\r\n")
 	if err := srv.ImagePush(name, registry, out); err != nil {
-		fmt.Fprintln(out, "Error: %s\n", err)
+		fmt.Fprintf(out, "Error: %s\n", err)
 	}
 	return nil
 }