Build proper URL
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m53s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m53s
This commit is contained in:
parent
d2824ce7e4
commit
41cc0cb790
4
main.go
4
main.go
@ -59,8 +59,8 @@ func main() {
|
||||
|
||||
body, writer := io.Pipe()
|
||||
|
||||
// TODO: URL
|
||||
req, err := http.NewRequest(http.MethodPost, "ipfs.narwhal-frog.ts.net", body)
|
||||
url := fmt.Sprintf("http://%v:%v/api/v0/add", ipfsHost, ipfsPort)
|
||||
req, err := http.NewRequest(http.MethodPost, url, body)
|
||||
if err != nil {
|
||||
githubactions.Fatalf("Unable to create request: %v", err.Error())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user