{"action":"created","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/1831","repository_url":"https://api.github.com/repos/astaxie/beego","labels_url":"https://api.github.com/repos/astaxie/beego/issues/1831/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/1831/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/1831/events","html_url":"https://github.com/astaxie/beego/issues/1831","id":143168698,"number":1831,"title":"c.Ctx.Input.RequestBody empty value","user":{"login":"goldalworming","id":440256,"avatar_url":"https://avatars.githubusercontent.com/u/440256?v=3","gravatar_id":"","url":"https://api.github.com/users/goldalworming","html_url":"https://github.com/goldalworming","followers_url":"https://api.github.com/users/goldalworming/followers","following_url":"https://api.github.com/users/goldalworming/following{/other_user}","gists_url":"https://api.github.com/users/goldalworming/gists{/gist_id}","starred_url":"https://api.github.com/users/goldalworming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldalworming/subscriptions","organizations_url":"https://api.github.com/users/goldalworming/orgs","repos_url":"https://api.github.com/users/goldalworming/repos","events_url":"https://api.github.com/users/goldalworming/events{/privacy}","received_events_url":"https://api.github.com/users/goldalworming/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-03-24T06:52:34Z","updated_at":"2016-03-24T07:50:12Z","closed_at":"2016-03-24T07:45:31Z","body":"this is happen after I update beego to 1.6.1. \r\n\r\nthis is my code\r\n\tfunc (c *AuthController) Login() {\r\n\r\n\t\tvar data models.User\r\n\t\tif err := json.Unmarshal(c.Ctx.Input.RequestBody, &data); err != nil {\r\n\t\t\tc.Ctx.Output.SetStatus(400)\r\n\t\t\tfmt.Println(c.Ctx.Input.RequestBody)\r\n\t\t\tc.Ctx.Output.Body([]byte(\"empty title\"))\r\n\t\t\treturn\r\n\t\t}\r\n\t\tres := struct{ \t\r\n\t\t\tData []*models.User \r\n\t\t}{}\r\n\r\n\t\tvar cond *orm.Condition\r\n\t\tcond = orm.NewCondition()\r\n\r\n\t\tcond = cond.And(\"username\", data.Username)\r\n\t\tcond = cond.And(\"password\", data.Password)\r\n\t\tlim :=1\r\n\r\n\t\tvar qs orm.QuerySeter\r\n\t\tqs = orm.NewOrm().QueryTable(\"user\").SetCond(cond).Limit(lim)\r\n\t\t_,err := qs.All(&res.Data)\r\n\t\tif err != nil {\r\n\t\t\tc.Ctx.Output.SetStatus(400)\r\n\t\t\tc.Ctx.Output.Body([]byte(err.Error()))\r\n\t\t\treturn\r\n\t\t}\r\n\t\tresult := struct{ \t\r\n\t\t\tSuccess bool\r\n\t\t\tMessage string\r\n\t\t}{}\t\r\n\t}\r\n\r\ncurl -X POST  http://lo0/login -d '{\"username\" : \"admin\", \"password\":\"admin\"}'\r\nempty title\r\n\r\nlmvm@lm17 ~/go/src/github.com/goldalworming/auth $ go run main.go \r\n[] <----fmt.Println return this empty array\r\n"},"comment":{"url":"https://api.github.com/repos/astaxie/beego/issues/comments/200712810","html_url":"https://github.com/astaxie/beego/issues/1831#issuecomment-200712810","issue_url":"https://api.github.com/repos/astaxie/beego/issues/1831","id":200712810,"user":{"login":"goldalworming","id":440256,"avatar_url":"https://avatars.githubusercontent.com/u/440256?v=3","gravatar_id":"","url":"https://api.github.com/users/goldalworming","html_url":"https://github.com/goldalworming","followers_url":"https://api.github.com/users/goldalworming/followers","following_url":"https://api.github.com/users/goldalworming/following{/other_user}","gists_url":"https://api.github.com/users/goldalworming/gists{/gist_id}","starred_url":"https://api.github.com/users/goldalworming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldalworming/subscriptions","organizations_url":"https://api.github.com/users/goldalworming/orgs","repos_url":"https://api.github.com/users/goldalworming/repos","events_url":"https://api.github.com/users/goldalworming/events{/privacy}","received_events_url":"https://api.github.com/users/goldalworming/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T07:50:12Z","updated_at":"2016-03-24T07:50:12Z","body":"CopyRequestBody never go anywhere...beego 1.6.1 cannot read all my app.conf value include port\r\n![screenshot from 2016-03-24 14 46 51](https://cloud.githubusercontent.com/assets/440256/14011227/82241456-f1cf-11e5-8377-9f8087307b95.png)\r\n"}}