1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 10:04:27 +00:00

Fix JSON unmarshall error

This commit is contained in:
Anthony Wang 2022-06-10 10:37:55 -05:00
parent 2f0a0b1216
commit 46cab80ef4
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76

View File

@ -70,7 +70,7 @@ func Person(ctx *context.APIContext) {
} }
var jsonmap map[string]interface{} var jsonmap map[string]interface{}
err = json.Unmarshal(binary, jsonmap) err = json.Unmarshal(binary, &jsonmap)
if err != nil { if err != nil {
ctx.Error(http.StatusInternalServerError, "Unmarshall", err) ctx.Error(http.StatusInternalServerError, "Unmarshall", err)
} }