hostname -f I guess
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
4829908013
commit
a64605f615
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue