remove tee
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 56s

This commit is contained in:
Alexandre Bruyant 2024-01-07 18:01:06 +01:00
parent 80f88cd69b
commit ce5aea88b0

View File

@ -91,10 +91,8 @@ func main() {
body, writer := io.Pipe()
r := io.TeeReader(body, os.Stdout)
url := fmt.Sprintf("http://%v:%v/api/v0/add", ipfsHost, ipfsPort)
req, err := http.NewRequest(http.MethodPost, url, r)
req, err := http.NewRequest(http.MethodPost, url, body)
if err != nil {
githubactions.Fatalf("Unable to create request: %v", err.Error())
}