Skip to content

Commit

Permalink
fix: get cid should use post
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy authored Oct 25, 2023
1 parent 5315e57 commit 7a72cd0
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 7a72cd0

Please sign in to comment.