cosmetic changes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Marvin Steadfast 2021-05-06 10:19:39 +02:00
parent 88d550f947
commit 2a708c8d1a

View File

@ -68,6 +68,7 @@ func (l Logic) ServeHTTP(w http.ResponseWriter, r *http.Request) {
logger.Debug().Str("body", string(body)).Msg("read body")
var jd PublicInfo
if err := json.Unmarshal(body, &jd); err != nil {
logger.Error().Msg(err.Error())
http.Error(w, "could not unmarshal body", http.StatusInternalServerError)
@ -75,8 +76,8 @@ func (l Logic) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
// jd.LocalAddress = l.ExternalURL
var nd PublicInfo
nd.ServerName = jd.ServerName
nd.Version = jd.Version
nd.ProductName = jd.ProductName