Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed app.Call call in docs and examples #19

Merged
merged 1 commit into from

2 participants

@victorcoder

I noticed that app.Call in silence_middleware must be app()

@paulbellamy paulbellamy merged commit 6e53c91 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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 {
Something went wrong with that request. Please try again.