diff options
| author | Jeff Carr <[email protected]> | 2024-02-14 03:10:02 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-14 03:10:02 -0600 | 
| commit | a64605f615e1ad1ef025c5c86d1e92001bf5e35b (patch) | |
| tree | dc7cb203262acae407e8f066981e126c751218df | |
| parent | 48299080138a77d94e5c75458c239bed324c729f (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | register.go | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/register.go b/register.go index 2f94754..b76ff2a 100644 --- a/register.go +++ b/register.go @@ -6,6 +6,7 @@ import (  	"net/http"  	"strings" +	"go.wit.com/lib/gui/shell"  	"go.wit.com/log"  ) @@ -21,8 +22,9 @@ func Register(gopath string, giturl string) bool {  	req.Header.Set("gopath", gopath)  	req.Header.Set("giturl", giturl) -	req.Header.Set("author", "jcarr") -	req.Header.Set("hostname", "hpdev2.wit.com") +	req.Header.Set("author", usr.username) +	hostname := shell.RunCapture("hostname -f") +	req.Header.Set("hostname", hostname)  	client := &http.Client{}  	resp, err := client.Do(req)  | 
