Preparing release Gin v1.0rc1

This commit is contained in:
Manu Mtz-Almeida
2015-05-22 16:55:16 +02:00
parent 8549810e2e
commit 66fa43f9ae
4 changed files with 15 additions and 7 deletions

View File

@ -45,7 +45,7 @@ func main() {
Value string `json:"value" binding:"required"`
}
if c.Bind(&json) {
if c.Bind(&json) == nil {
DB[user] = json.Value
c.JSON(200, gin.H{"status": "ok"})
}