Pārlūkot izejas kodu

Setting content type is unnecessary

Rob Figueiredo 12 gadi atpakaļ
vecāks
revīzija
ac8dca3c44
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  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"})
 }