add avatar upload

This commit is contained in:
kandrusyak
2023-07-28 01:05:30 +03:00
parent 59b937bce6
commit 1a82f01101
3 changed files with 15 additions and 1 deletions

View File

@@ -11,7 +11,6 @@ func PostRequest(url string, body io.Reader, header http.Header) ([]byte, error,
client := http.Client{}
req, err := http.NewRequest("POST", url, body)
req.Header = header
req.Header.Set("Content-Type", "application/json")
resp, err := client.Do(req)