diff --git a/server/src/handler/userinfo.go b/server/src/handler/userinfo.go index d89ae5f..506d2fa 100644 --- a/server/src/handler/userinfo.go +++ b/server/src/handler/userinfo.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "net/http" + "sirlab.de/go/knowyt/user" ) @@ -13,7 +14,7 @@ type UserInfoJson struct { Lang string `json:"lang"` Role string `json:"role"` GameId string `json:"game"` - IsCameo string `json:"isCameo",omitempty` + IsCameo string `json:"isCameo,omitempty"` } func (authMux *AuthMux) GetUserInfo(usr *user.User, w http.ResponseWriter, r *http.Request) { @@ -35,5 +36,5 @@ func (authMux *AuthMux) GetUserInfo(usr *user.User, w http.ResponseWriter, r *ht w.Header().Add("Content-Type", "application/json") jsonString, _ := json.Marshal(usrLight) - fmt.Fprintf(w, string(jsonString)) + fmt.Fprintf(w, "%s", string(jsonString)) }