beego:unexpected end of JSON input
使用beego框架,前端POST传递json字符串, 后端接收, 出现错误:
unexpected end of JSON input:
// 请求格式:
// POST /todo {"Title": "xxx"}
func (c *TodoController) AddTodo() {
item := types.TodoItem{}
result := util.Response{}
...
原创
2019-02-15 10:25:56 ·
5673 阅读 ·
0 评论