Skip to content

Commit

Permalink
fix json missing value on /status endpoint (refs veepee-oss#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien PLENARD committed Aug 20, 2019
1 parent c095cae commit c2a3c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relay/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ type poster interface {
}

type simpleStats struct {
location string
Location string `json:"location"`
}

type simplePoster struct {
Expand All @@ -273,7 +273,7 @@ func newSimplePoster(location string, timeout time.Duration, skipTLSVerification
}

func (s *simplePoster) getStats() stats {
return simpleStats{location: s.location}
return simpleStats{Location: s.location}
}

func (s *simplePoster) post(buf []byte, query string, auth string, endpoint string) (*responseData, error) {
Expand Down

0 comments on commit c2a3c93

Please sign in to comment.