diff options
| author | Jeff Carr <[email protected]> | 2024-02-14 12:23:43 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-14 12:23:43 -0600 | 
| commit | 020a4eb206239a35c89bc1de1fc0402e2a5d6132 (patch) | |
| tree | 47ed61887d30fec4a5e76be058041ef0167e7cb2 | |
| parent | a64605f615e1ad1ef025c5c86d1e92001bf5e35b (diff) | |
minor fixv0.20.5
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | register.go | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/register.go b/register.go index b76ff2a..c57c550 100644 --- a/register.go +++ b/register.go @@ -4,6 +4,7 @@ import (  	"bytes"  	"io/ioutil"  	"net/http" +	"os/user"  	"strings"  	"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("giturl", giturl) -	req.Header.Set("author", usr.username) +	usr, _ := user.Current() +	req.Header.Set("author", usr.Username)  	hostname := shell.RunCapture("hostname -f")  	req.Header.Set("hostname", hostname)  | 
