From 7c3181e4d70d4a3163d7a4c46e051694f8659c3a Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Sun, 29 Dec 2013 11:20:51 -0800 Subject: [PATCH] fix ctx.inspect() after previous commit otherwise .body will be missing --- lib/context.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/context.js b/lib/context.js index fd7e6a2..111a107 100644 --- a/lib/context.js +++ b/lib/context.js @@ -20,7 +20,10 @@ module.exports = { */ inspect: function(){ - return this.toJSON(); + return { + request: this.request, + response: this.response + } }, /**