From 886a292a51a564ced248e32bd1a53d0ef2e09966 Mon Sep 17 00:00:00 2001 From: Chris Tarquini Date: Sat, 14 Sep 2013 12:53:36 -0400 Subject: [PATCH] Fixed typo `ctx.accept` -> `ctx.accepts` --- docs/api.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index 2657061..6adf170 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1,4 +1,3 @@ - ## Application A Koa application is not a 1-to-1 representation of an HTTP server, @@ -442,7 +441,7 @@ this.body = 'Redirecting to shopping cart'; to prompt for download. Optionally specify the `filename` of the download. -### ctx.accept(types) +### ctx.accepts(types) Check if the given `type(s)` is acceptable, returning the best match when true, otherwise `undefined`, in which