Explorar o código

Setting content type is unnecessary

Rob Figueiredo %!s(int64=12) %!d(string=hai) anos
pai
achega
ac8dca3c44
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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"})
 }