diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -17,8 +17,8 @@ import ( func (f *Forge) HttpPost(base string, route string, data []byte) ([]byte, error) { // Fix using url.JoinPath (Best Practice) - baseURL, _ := url.Parse(f.forgeURL) // "http://forge.grid.wit.com:2520") - finalURL := baseURL.JoinPath(route) // Correctly produces ...:2520/patches + baseURL, _ := url.Parse(f.Config.ForgeURL) // "http://forge.grid.wit.com:2520") + finalURL := baseURL.JoinPath(route) // Correctly produces ...:2520/patches var err error var req *http.Request @@ -52,7 +52,7 @@ func rawHttpPost(req *http.Request) ([]byte, error) { } func (f *Forge) LookupPBorig(check *gitpb.Repos) (*gitpb.Repos, error) { - url := f.forgeURL + "lookup" + url := f.Config.ForgeURL + "lookup" for repo := range check.IterByFullPath() { if repo.Namespace == "" { @@ -63,6 +63,7 @@ func (f *Forge) LookupPBorig(check *gitpb.Repos) (*gitpb.Repos, error) { return check.SubmitReposPB(url) } +/* func (f *Forge) LookupPB(check *gitpb.Repos) (*gitpb.Repos, error) { url := f.forgeURL + "lookup" @@ -102,6 +103,7 @@ func (f *Forge) UpdatePB(check *gitpb.Repos) (*gitpb.Repos, error) { return queryPB.SubmitReposPB(url) } +*/ /* // HTTPRequestToProto converts an *http.Request to our custom HttpRequest protobuf message. |
