mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-06 09:21:46 +00:00
refactor: clean code
This commit is contained in:
@@ -164,8 +164,8 @@ func (c *Client) sendReq(method string, path string, data map[string]interface{}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header.Add("Content-Type", mime)
|
||||
req.Header.Add("Authorization", auth)
|
||||
req.Header.Set("Content-Type", mime)
|
||||
req.Header.Set("Authorization", auth)
|
||||
|
||||
client := http.Client{}
|
||||
resp, err := client.Do(req)
|
||||
|
Reference in New Issue
Block a user