mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 20:37:05 +00:00
remove any reference to the pre go1.9 context.Context and replace with iris.Context on some places that were forgotten
got an email feedback about this Former-commit-id: b1caa261a0d425d8db2091bffb8cfd6065c4e1fa
This commit is contained in:
@@ -663,7 +663,7 @@ func internalServerError(ctx iris.Context) {
|
||||
ctx.WriteString("Oups something went wrong, try again")
|
||||
}
|
||||
|
||||
func index(ctx context.Context) {
|
||||
func index(ctx iris.Context) {
|
||||
ctx.View("index.html")
|
||||
}
|
||||
```
|
||||
@@ -1149,7 +1149,7 @@ type Context interface {
|
||||
// to be executed. Next handlers are being executed on iris because you can alt the
|
||||
// error code and change it to a more specific one, i.e
|
||||
// users := app.Party("/users")
|
||||
// users.Done(func(ctx context.Context){ if ctx.StatusCode() == 400 { /* custom error code for /users */ }})
|
||||
// users.Done(func(ctx iris.Context){ if ctx.StatusCode() == 400 { /* custom error code for /users */ }})
|
||||
NotFound()
|
||||
|
||||
// +------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user