Просмотр исходного кода

Setting content type is unnecessary

Rob Figueiredo 12 лет назад
Родитель
Сommit
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"})
 }