diff options
| author | Jeff Carr <[email protected]> | 2025-01-20 03:31:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-20 03:31:19 -0600 |
| commit | 9ec7b4394f8880fa4c9ae8d52f5fa4503eb95376 (patch) | |
| tree | 2ca74752a937e2c753b704185b3ccb9d8474800e /getPatchsets.go | |
| parent | 1191b9b65df2188e3746ce66220edf082d3f3b29 (diff) | |
make HttpPost() globalv0.0.60
Diffstat (limited to 'getPatchsets.go')
| -rw-r--r-- | getPatchsets.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/getPatchsets.go b/getPatchsets.go index eaea0f5..0ffccb1 100644 --- a/getPatchsets.go +++ b/getPatchsets.go @@ -17,7 +17,7 @@ var forgeURL string = "https://go.wit.com/" func (f *Forge) GetPatchesets() (*Patchsets, error) { url := forgeURL + "/GetPatchsets" log.Info("GetPatchsets() url", url) - body, err := httpPost(url, nil) + body, err := f.HttpPost(url, nil) if err != nil { log.Info("httpPost() failed:", err) return nil, err @@ -39,7 +39,7 @@ func (f *Forge) GetPatchesets() (*Patchsets, error) { return psets, nil } -func httpPost(url string, data []byte) ([]byte, error) { +func (f *Forge) HttpPost(url string, data []byte) ([]byte, error) { var err error var req *http.Request |
