浏览代码

Setting content type is unnecessary

Rob Figueiredo 12 年之前
父节点
当前提交
ac8dca3c44
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      revel/src/benchmark/app/controllers/app.go

+ 0 - 1
revel/src/benchmark/app/controllers/app.go

@@ -66,7 +66,6 @@ type App struct {
 }
 
 func (c App) Json() revel.Result {
-	c.Response.ContentType = "application/json"
 	return c.RenderJson(MessageStruct{"Hello, world"})
 }