From 18bdec951d3b735c0aefee4b8e1eafb3fecf2b4e Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 5 May 2015 21:36:31 +0800 Subject: [PATCH] fix #1143 --- error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.go b/error.go index 6db4a5a8..99a1fcf3 100644 --- a/error.go +++ b/error.go @@ -92,7 +92,7 @@ func showErr(err interface{}, ctx *context.Context, Stack string) { data["Stack"] = Stack data["BeegoVersion"] = VERSION data["GoVersion"] = runtime.Version() - ctx.Output.SetStatus(500) + ctx.ResponseWriter.WriteHeader(500) t.Execute(ctx.ResponseWriter, data) }