Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #19 from victorcoder/master

Fixed app.Call call in docs and examples
  • Loading branch information...
commit 6e53c9110299fa8c64d3e4fc017e1d71ad6e9bce 2 parents 119548b + 06f5e0f
@paulbellamy authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.markdown
  2. +1 −1  examples/silence_middleware.go
View
2  README.markdown
@@ -120,7 +120,7 @@ An extremely basic middleware package is simply a function:
func SilenceErrors(env mango.Env, app mango.App) (mango.Status, mango.Headers, mango.Body) {
// Call our upstream app
- status, headers, body := app.Call(env)
+ status, headers, body := app(env)
// If we got an error
if status == 500 {
View
2  examples/silence_middleware.go
@@ -6,7 +6,7 @@ import (
func SilenceErrors(env mango.Env, app mango.App) (mango.Status, mango.Headers, mango.Body) {
// Call our upstream app
- status, headers, body := app.Call(env)
+ status, headers, body := app(env)
// If we got an error
if status == 500 {
Please sign in to comment.
Something went wrong with that request. Please try again.