Skip to content

Commit

Permalink
Fixed Get version of Gerrit instance example
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrunwald committed May 28, 2016
1 parent a3420ea commit bf7969a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ func main() {

v, _, err := client.Config.GetVersion()

fmt.Printf("Version: %s", *v)
fmt.Printf("Version: %s", v)

// Version: 2.11.3-1230-gb8336f1
// Version: 2.12.2-2512-g0b1bccd
}
```

Expand Down
1 change: 1 addition & 0 deletions gerrit.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func (c *Client) addAuthentication(req *http.Request) {
if c.Authentication.HasBasicAuth() == true {
req.SetBasicAuth(c.Authentication.name, c.Authentication.secret)
}

// Apply HTTP Cookie
if c.Authentication.HasCookieAuth() == true {
req.AddCookie(&http.Cookie{
Expand Down

0 comments on commit bf7969a

Please sign in to comment.