diff options
| author | Jeff Carr <[email protected]> | 2025-02-15 12:31:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-15 12:31:00 -0600 |
| commit | 9a87c93bad7f3bc26586ef391ce90213742c8138 (patch) | |
| tree | e701eaed94e62b51e1f31334573ca8ee0dec7b13 | |
| parent | b7b18626d87dd42d5e5fe4fac8ff66eeb9836ee9 (diff) | |
| -rw-r--r-- | http.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ func (f *Forge) HttpPost(url string, data []byte) ([]byte, error) { var req *http.Request req, err = http.NewRequest(http.MethodPost, url, bytes.NewBuffer(data)) - log.Info("httpPost() with len", len(data), "url", url) + // log.Info("httpPost() with len", len(data), "url", url) usr, _ := user.Current() req.Header.Set("author", usr.Username) @@ -35,7 +35,7 @@ func (f *Forge) HttpPost(url string, data []byte) ([]byte, error) { return []byte("client.Do(req) error"), err } defer resp.Body.Close() - log.Info("httpPost() with len", len(data)) + // log.Info("httpPost() with len", len(data)) body, err := ioutil.ReadAll(resp.Body) if err != nil { |
