From 21b7eb82b9850ad773c294a5f739d70422dba81a Mon Sep 17 00:00:00 2001 From: dead_horse Date: Tue, 6 May 2014 10:01:34 +0800 Subject: [PATCH] add originalUrl --- docs/api/context.md | 1 + docs/api/request.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/api/context.md b/docs/api/context.md index 0c9582f..0ad938c 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -117,6 +117,7 @@ throw err; - `ctx.method=` - `ctx.url` - `ctx.url=` + - `ctx.originalUrl` - `ctx.path` - `ctx.path=` - `ctx.query` diff --git a/docs/api/request.md b/docs/api/request.md index f23ad9f..803d804 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -31,6 +31,10 @@ Set request URL, useful for url rewrites. +### req.originalUrl + + Get request original URL. + ### req.path Get request pathname.