From 8804b7ba6f7d85626970d1ea636ac002488d9095 Mon Sep 17 00:00:00 2001 From: AlexeyKhristov Date: Wed, 17 Jun 2015 12:27:02 +0300 Subject: [PATCH] add this.req check for querystring() --- lib/request.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/request.js b/lib/request.js index cb7dcda..3e0956a 100644 --- a/lib/request.js +++ b/lib/request.js @@ -154,6 +154,7 @@ module.exports = { */ get querystring() { + if (!this.req) return ''; return parse(this.req).query || ''; },