hostname -f I guess

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-14 03:10:02 -06:00
parent 4829908013
commit a64605f615
1 changed files with 4 additions and 2 deletions

View File

@ -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)