fix method

This commit is contained in:
andrusyakka
2023-08-17 17:32:54 +03:00
parent 9c119802b8
commit 3a59b0896e
2 changed files with 7 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ func GetRequest(url string, header http.Header, args ...string) ([]byte, error,
func PatchRequest(url string, body io.Reader, header http.Header) ([]byte, error, *http.Response) {
client := http.Client{}
req, err := http.NewRequest("POST", url, body)
req, err := http.NewRequest("PATCH", url, body)
req.Header = header
resp, err := client.Do(req)