From c2a3c93ad6e947da9dc7b82b2534c56d48f42b36 Mon Sep 17 00:00:00 2001 From: Damien PLENARD Date: Tue, 20 Aug 2019 17:53:46 +0200 Subject: [PATCH] fix json missing value on /status endpoint (refs #32) --- relay/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/http.go b/relay/http.go index 95b6aea..d3bb967 100644 --- a/relay/http.go +++ b/relay/http.go @@ -246,7 +246,7 @@ type poster interface { } type simpleStats struct { - location string + Location string `json:"location"` } type simplePoster struct { @@ -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) {