Permalink
Browse files

fix missing request object issue on request error

  • Loading branch information...
jeremydaly committed Apr 25, 2018
1 parent b16c1a6 commit f6e95775b09e87609d3a293c431bd0be616ed9ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/response.js
@@ -359,7 +359,7 @@ class RESPONSE {
const response = {
headers: this._headers,
statusCode: this._statusCode,
body: this.app.request.method !== 'HEAD' ? encodeBody(body) : '',
body: this.app.request && this.app.request.method === 'HEAD' ? '' : encodeBody(body),
isBase64Encoded: this._isBase64
}

0 comments on commit f6e9577

Please sign in to comment.