From 9f2182dec75fd326e333942403ae8f2230c20eb6 Mon Sep 17 00:00:00 2001 From: haoxin Date: Thu, 13 Jul 2017 12:52:07 -0500 Subject: [PATCH] docs: fix typo (#1023) --- docs/api/response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/response.md b/docs/api/response.md index e224c7d..0198e51 100644 --- a/docs/api/response.md +++ b/docs/api/response.md @@ -163,7 +163,7 @@ app.use(function * (next) { Get a response header field value with case-insensitive `field`. ```js -const etag = ctx.get('ETag'); +const etag = ctx.response.get('ETag'); ``` ### response.set(field, value)