Merge pull request #69 from mopemope/fix-variadic

Fix variadic parameter
This commit is contained in:
Manu Mtz.-Almeida 2014-07-16 12:06:21 +02:00
commit 18d8c2a4c8

2
gin.go
View File

@ -464,7 +464,7 @@ func (c *Context) BindWith(obj interface{}, b binding.Binding) bool {
} }
func (c *Context) Render(code int, render render.Render, obj ...interface{}) { func (c *Context) Render(code int, render render.Render, obj ...interface{}) {
if err := render.Render(c.Writer, code, obj); err != nil { if err := render.Render(c.Writer, code, obj...); err != nil {
c.ErrorTyped(err, ErrorTypeInternal, obj) c.ErrorTyped(err, ErrorTypeInternal, obj)
c.Abort(500) c.Abort(500)
} }