summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-20 03:30:58 -0600
committerJeff Carr <[email protected]>2025-01-20 03:30:58 -0600
commit6386bc48267261c17ee591b9341e05b2f21fa727 (patch)
treebfcbe21dd3e06fe1ab3af6f64641423ebacee0cc /send.go
parent6d047647497c1ad7315e727084a15194f0126ed9 (diff)
Diffstat (limited to 'send.go')
-rw-r--r--send.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/send.go b/send.go
index c296257..cf389ce 100644
--- a/send.go
+++ b/send.go
@@ -21,7 +21,7 @@ func sendPatches(pset *forgepb.Patchset) error {
return err
}
log.Info("proto.Marshal() msg len", len(msg))
- body, err := httpPost(url, msg)
+ body, err := me.forge.HttpPost(url, msg)
if err != nil {
log.Info("httpPost() failed:", err)
return err
@@ -38,7 +38,7 @@ func sendPatches(pset *forgepb.Patchset) error {
func listPatches() error {
var url string
url = me.urlbase + "/patchsetlist"
- body, err := httpPost(url, nil)
+ body, err := me.forge.HttpPost(url, nil)
if err != nil {
log.Info("httpPost() failed:", err)
return err
@@ -61,7 +61,7 @@ func listPatches() error {
func lastPatch() string {
var url string
url = me.urlbase + "/patchsetlist"
- body, err := httpPost(url, nil)
+ body, err := me.forge.HttpPost(url, nil)
if err != nil {
log.Info("httpPost() failed:", err)
return ""
@@ -80,7 +80,7 @@ func lastPatch() string {
func doRegister(newurl string) error {
var url string
url = me.urlbase + "/register?url=" + newurl
- body, err := httpPost(url, nil)
+ body, err := me.forge.HttpPost(url, nil)
if err != nil {
log.Info("httpPost() failed:", err)
return err
@@ -97,7 +97,7 @@ func doRegister(newurl string) error {
func getPatch(pbfile string) (*forgepb.Patchset, error) {
url := me.urlbase + "/patchsetget?filename=" + pbfile
log.Info("getPatch() url", url)
- body, err := httpPost(url, nil)
+ body, err := me.forge.HttpPost(url, nil)
if err != nil {
log.Info("httpPost() failed:", err)
return nil, err