Skip to content

Commit

Permalink
Preparing release Gin v1.0rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed May 22, 2015
1 parent 447a99a commit a7e0d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_basic.go → basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
}
Expand Down

0 comments on commit a7e0d4b

Please sign in to comment.