add this.req check for querystring()

This commit is contained in:
AlexeyKhristov 2015-06-17 12:27:02 +03:00 committed by Jonathan Ong
parent 391650518f
commit 8804b7ba6f

View file

@ -154,6 +154,7 @@ module.exports = {
*/ */
get querystring() { get querystring() {
if (!this.req) return '';
return parse(this.req).query || ''; return parse(this.req).query || '';
}, },