parent
a64605f615
commit
020a4eb206
|
@ -4,6 +4,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os/user"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
|
@ -22,7 +23,8 @@ 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", usr.username)
|
usr, _ := user.Current()
|
||||||
|
req.Header.Set("author", usr.Username)
|
||||||
hostname := shell.RunCapture("hostname -f")
|
hostname := shell.RunCapture("hostname -f")
|
||||||
req.Header.Set("hostname", hostname)
|
req.Header.Set("hostname", hostname)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue