diff options
| author | Jeff Carr <[email protected]> | 2025-09-07 19:16:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-07 21:41:24 -0500 |
| commit | 4b78407d3f06b82e7a6f34911fa5b45b833cfeea (patch) | |
| tree | a0c7e80b9867b9ece43948a889241bff86a60c00 /post.go | |
| parent | e5cd37ef21e8e573a7d3ff6cf84c250f7cd049ea (diff) | |
store the errors
Diffstat (limited to 'post.go')
| -rw-r--r-- | post.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,8 @@ import ( "net/url" "os" "os/user" + + "go.wit.com/log" ) func HttpPost(baseURL string, route string, data []byte) ([]byte, error) { @@ -19,6 +21,7 @@ func HttpPost(baseURL string, route string, data []byte) ([]byte, error) { var err error var req *http.Request + log.Info("httppb.HttpPost to", finalURL.String()) req, err = http.NewRequest(http.MethodPost, finalURL.String(), bytes.NewBuffer(data)) if req == nil { return nil, err |
