Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Do not print token.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Mar 3, 2013
1 parent e901c33 commit 1f7910f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nut/publish.go
Expand Up @@ -45,15 +45,14 @@ func runPublish(cmd *Command) {
url, err := url.Parse("http://" + NutImportPrefixes["gonuts.io"])
FatalIfErr(err)

url.RawQuery = "token=" + publishToken

for _, arg := range cmd.Flag.Args() {
b, nf := ReadNut(arg)
url.Path = fmt.Sprintf("/%s/%s/%s", nf.Vendor, nf.Name, nf.Version)

if publishV {
log.Printf("Putting %s to %s ...", arg, url)
}
url.RawQuery = "token=" + publishToken
req, err := http.NewRequest("PUT", url.String(), bytes.NewReader(b))
FatalIfErr(err)
req.Header.Set("User-Agent", "nut publisher")
Expand Down

0 comments on commit 1f7910f

Please sign in to comment.