Merge branch 'develop' into performance

Conflicts:
	binding/form_mapping.go
	context_test.go
This commit is contained in:
Manu Mtz-Almeida
2015-04-07 19:59:43 +02:00
14 changed files with 68 additions and 123 deletions
+2 -2
View File
@@ -235,9 +235,9 @@ func (c *Context) HTMLString(code int, format string, values ...interface{}) {
// Returns a HTTP redirect to the specific location.
func (c *Context) Redirect(code int, location string) {
if code >= 300 && code <= 308 {
c.Render(code, render.Redirect, location)
c.Render(code, render.Redirect, c.Request, location)
} else {
log.Panicf("Cannot send a redirect with status code %d", code)
log.Panicf("Cannot redirect with status code %d", code)
}
}