Removed redundancy when redirecting

This commit is contained in:
Alexander Nyquist
2014-07-29 00:53:56 +02:00
parent 2c4460d7cc
commit e350ae7c7e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ func (c *Context) String(code int, format string, values ...interface{}) {
// Returns a HTTP redirect to the specific location.
func (c *Context) Redirect(location string, code int) {
c.Render(code, render.Redirect, location, code)
c.Render(code, render.Redirect, location)
}
// Writes some data into the body stream and updates the HTTP code.