1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00

Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md

Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
This commit is contained in:
kataras
2017-08-18 17:09:18 +03:00
parent 398d1e816c
commit b96476d100
53 changed files with 12642 additions and 1046 deletions

View File

@@ -887,8 +887,7 @@ func (ctx *context) Request() *http.Request {
// It's used by the router, developers may use that
// to replace and execute handlers immediately.
func (ctx *context) Do(handlers Handlers) {
ctx.handlers = handlers
ctx.handlers[0](ctx)
Do(ctx, handlers)
}
// AddHandler can add handler(s)
@@ -1453,6 +1452,7 @@ func (ctx *context) Write(rawBody []byte) (int, error) {
//
// Returns the number of bytes written and any write error encountered.
func (ctx *context) Writef(format string, a ...interface{}) (n int, err error) {
ctx.ContentType(contentTextHeaderValue)
return ctx.writer.Writef(format, a...)
}