Skip to content

Commit

Permalink
Merge pull request #7 from noyyyy/patch-1
Browse files Browse the repository at this point in the history
fix: get cid request method
  • Loading branch information
rotarur authored Oct 26, 2023
2 parents b2a76b3 + 7a72cd0 commit 2ca3fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func createTempDirWithFile(f []string) (*os.File, error) {
}

func GetCID(url string, payload io.Reader) (*http.Response, error) {
req, err := http.NewRequest(http.MethodGet, url, payload)
req, err := http.NewRequest(http.MethodPost, url, payload)
if err != nil {
return nil, fmt.Errorf("Error creating HTTP request: %s", err)
}
Expand Down

0 comments on commit 2ca3fdf

Please sign in to comment.