From ce5aea88b026eca992cdf89d95ac74fde7737e79 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 7 Jan 2024 18:01:06 +0100 Subject: [PATCH] remove tee --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 0b3b2b5..c609431 100644 --- a/main.go +++ b/main.go @@ -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()) }