Rename NewProxyRequest to NewRequestTo

This commit is contained in:
adnano
2020-09-27 20:37:16 -04:00
parent f6be76f8b8
commit 370bcf3bb9
2 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ func sendRequest(req *gmi.Request) error {
case gmi.StatusClassRedirect:
fmt.Println("Redirecting to", resp.Meta)
// Make the request to the same host
red, err := gmi.NewProxyRequest(req.Host, resp.Meta)
red, err := gmi.NewRequestTo(req.Host, resp.Meta)
if err != nil {
return err
}