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"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"go.wit.com/lib/gui/shell"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -21,8 +22,9 @@ func Register(gopath string, giturl string) bool {
|
||||||
|
|
||||||
req.Header.Set("gopath", gopath)
|
req.Header.Set("gopath", gopath)
|
||||||
req.Header.Set("giturl", giturl)
|
req.Header.Set("giturl", giturl)
|
||||||
req.Header.Set("author", "jcarr")
|
req.Header.Set("author", usr.username)
|
||||||
req.Header.Set("hostname", "hpdev2.wit.com")
|
hostname := shell.RunCapture("hostname -f")
|
||||||
|
req.Header.Set("hostname", hostname)
|
||||||
|
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
|
|
Loading…
Reference in New Issue